public void NotIf() { MyTestClass Temp = new MyTestClass(); Assert.NotSame(Temp, Temp.Check(x => x.B != 10)); Assert.Same(Temp, Temp.Check(x => x.B != 1)); }
public void If() { var Temp = new MyTestClass(); Assert.Same(Temp, Temp.Check(x => x.B == 10)); Assert.NotSame(Temp, Temp.Check(x => x.B == 1)); }
public void If() { var Temp = new MyTestClass(); Assert.Same(Temp, Temp.Check(x => x.B == 10)); Assert.NotSame(Temp, Temp.Check(x => x.B == 1)); }
public void NotIf() { MyTestClass Temp = new MyTestClass(); Assert.NotSame(Temp, Temp.Check(x => x.B != 10)); Assert.Same(Temp, Temp.Check(x => x.B != 1)); }