コード例 #1
0
ファイル: TestAssert.cs プロジェクト: Mhburg/MUnit
        public void AssertExpectValue()
        {
            AssemblyPrep.RunSingleTest(typeof(MockAssertClass), "AssertExpectValue");
            _autoResetEvent.WaitOne();

            Assert.AreEqual(UTF.UnitTestOutcome.Passed, _result.Outcome);
        }
コード例 #2
0
ファイル: TestAssert.cs プロジェクト: Mhburg/MUnit
        public void AssertAreEqualValueThrown()
        {
            AssemblyPrep.RunSingleTest(typeof(MockAssertClass), "AssertAreEqualValueThrown");
            _autoResetEvent.WaitOne();

            Assert.AreEqual(UTF.UnitTestOutcome.Failed, _result.Outcome);
        }
コード例 #3
0
ファイル: TestAssert.cs プロジェクト: Mhburg/MUnit
        public void AssertAreEqualValue()
        {
            AssemblyPrep.RunSingleTest(typeof(MockAssertClass), "AssertAreEqualValue");
            //AssemblyPrep.TestEngine
            //    .RunTests(
            //        new[] { HashUtilities.GuidForTestCycleID(AssemblyPrep.Source, typeof(MockAssertClass).FullName + ".AssertAreEqualValue") },
            //        AssemblyPrep.Logger);
            _autoResetEvent.WaitOne();

            Assert.AreEqual(UTF.UnitTestOutcome.Passed, _result.Outcome);
        }
コード例 #4
0
 public void TestDataMethod()
 {
     AssemblyPrep.RunSingleTest(typeof(MockDataDrivenClass), "DataDrivenTest");
 }