public void With_on_An_Class_returns_value() { var testValue = "Erin Was here"; var td = new TestableDummy { DummyString = testValue, DummyValueType = 5 }; Assert.AreEqual(td.With(c => c.DummyString), testValue); }
public void With_will_return_Null_when_class_is_null() { TestableDummy td = null; Assert.IsNull(td.With(c => c.DummyString)); }