protected override void Establish_That() { TestedClass.Expect(tc => tc.InternalDispose()).CallOriginalMethod(OriginalCallOptions.NoExpectation); }
public Fixture() { Sut = new TestedClass(); }
public void MaxElementExceptionTest() { TestedClass tested = new TestedClass(); Assert.ThrowsException <ArgumentNullException>(() => tested.MaxElement(null)); }
public void MaxElementEmptyExceptionTest() { TestedClass tested = new TestedClass(); Assert.ThrowsException <EmptyListException>(() => tested.MaxElement(new List <int>())); }
public void TestMethodSum() { Assert.AreEqual(3, TestedClass.SumTwo(1)); }