Skip to content

kaustubh-sdet/RoundTheCode.xunit

Repository files navigation

.NET

xUnit

Build

✅ README.md

Day1UnitTest.xunit ✅

This repository contains C# xUnit test cases created as part of daily practice/learning. It includes examples of unit testing concepts using xUnit framework in .NET.


📌 Tech Stack

  • Language: C#
  • Framework: .NET
  • Unit Testing Framework: xUnit
  • IDE Recommended: Visual Studio / VS Code

📂 Project Structure

Day1UnitTest.xunit/ │

├── RoundTheCode.xunit/ # Main xUnit test project

├── RoundTheCode.xUnit.methods/ # Additional methods/helper project (if applicable)

├── README.md # Documentation

├── .gitignore

└── .gitattributes


🚀 Getting Started

✅ Prerequisites

Make sure you have installed:

  • .NET SDK 6/7/8 (any supported version)
  • Visual Studio / VS Code (optional but recommended)

Check installation:

dotnet --version

▶️ How to Run the Tests
1️⃣ Clone the repository
git clone https://github.com/<your-username>/Day1UnitTest.xunit.git
cd Day1UnitTest.xunit

2️⃣ Restore dependencies
dotnet restore

3️⃣ Run tests
dotnet test

🧪 What’s Included

Sample unit test cases written in xUnit

Basic assertions like:

Assert.Equal()

Assert.True()

Assert.NotNull()

Naming convention practice

Clean structure for learning & scaling

📌 Notes

This repo is created for learning/testing practice.

Future updates may include:

Parameterized tests ([Theory])

Test Data (InlineData, MemberData)

Setup/Teardown

Mocking (Moq)

CI using GitHub Actions

🤝 Contributing

Contributions are welcome!
If you'd like to improve or add new tests:

Fork the repository

Create a new branch

Push changes

Submit a Pull Request

👨‍💻 Author

Kaustubh W GitHub: kaustubh-sdet ↗

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages