Skip to content
| Marketplace
Sign in
Visual Studio>Tools>System.Spec
System.Spec

System.Spec

Alex Falkowski

|
604 installs
| (0) | Free
System.Spec is testing tool for the C# programming language.
Download

System.Spec

System.Spec is testing tool for the C# programming language.

Usage

System.Spec uses the following frameworks to help it achieve the goal of a BDD framework:

  • NSubstitute as the mocking framework
  • FluentAssertions as the expected outcome framework
  • NUnit as the testing framework

Below is an example specification in C#:

namespace YourCompany.Specs{    using NSubstitute;    using System.Spec;    public class ImportantSpecification : Specification    {        protected override void Define()        {            Describe("A very cool specification", () => {                It("should do something that is good", () => {                    var testInterface = Substitute.For<ITestInterface>();                    testInterface.Received().TestMethod();                });            });        }    }}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft