public void ShouldAddAssembly() { // Act testEngine.LoadAssembly(@"Assemblies\TestSuite.TestEngine.Mock.dll"); // Assert var assembly = testEngine.Assemblies.FirstOrDefault(a => a.GetName().Name == "TestSuite.TestEngine.Mock"); assembly.ShouldNotBeNull(); }
public void ShouldCreateTestInstance() { // Arrange testEngine.LoadAssembly(@"Assemblies\TestSuite.TestEngine.Mock.dll"); // Act testEngine.SetClass(@"TestSuite.TestEngine.Mock.Class1, TestSuite.TestEngine.Mock"); // Assert var testInstance = testEngine.TestInstance; var typeFullName = testInstance.GetType().FullName; typeFullName.ShouldEqual("TestSuite.TestEngine.Mock.Class1"); }