public void Assert_WhenArgumentIsNestedMethod_ThrowsApplicationException() { var nestedClassSut = new NestedValuesSut(); Unit.Assert.Throws <ApplicationException>(() => Assert(() => nestedClassSut.Method().Method())); Unit.Assert.Throws <ApplicationException>(() => Assert(() => NestedValuesSut.StaticMethod().Method())); }
public void Assert_WhenArgumentIsNestedProperty_ThrowsApplicationException() { var nestedClassSut = new NestedValuesSut(); Unit.Assert.Throws <ApplicationException>(() => Assert(() => nestedClassSut.Property.Property)); }