Skip to content
A Behavior-Driven Test framework similarly like Jasmine
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Jasmine.NET.Test
Jasmine.NET
.gitignore
Jasmine.NET.sln
README.MD

README.MD

#Jasmine.NET Provides similar Behavior-Driven test coding experience as the known Jasmine JavaScript test framework. More contents will be added..

##Usage 1, Download the packages from NuGet using command

   Install-Package JasmineNet

2, Write your own test classes with any known test framework. E.g.: MSTest

  using JasminNET;
  
  [TestClass]
  public class YourTestClass : Jasmine
  {
    [TestMethod]
    public void TestMethod1()
    {
      Describe("Your Test suit", () =>
      {
          BeforeAll(() =>
          {
              // 
              // Something be invoked once before all tests start.
          });
  
          AfterAll(() =>
          {
              //
              // Something be invoked once after all tests end.
          });
  
          BeforeEach(() =>
          {
              //
              // Something be invoked before each test starts.
  
          });
  
          AfterEach(() =>
          {
              //
              // Something be invoked after each test ends.
  
          });
  
          It("Should match the criteria.", () =>
          {
              // Do something to prepare the object.
              int a = 0;
  
              Expect(a).Not().ToBeNull();
          });
      });
    }
  }

##Known Issues

  1. I am using VS2015 Community to author this project. So currently it will throw error if your .NET version <4.5.2. But i will fix this soon.
  2. A few functions within JExpect for validation have not complete yet, and it will throw a JException during invoketion.
You can’t perform that action at this time.