public void Return_on_a_class_returns_ValueType_failvalue() { var td = new TestableDummy { DummyString = "hi ho hi ho" }; Assert.AreNotEqual(td.Return(c => c.DummyValueType, 8), 5); }
public void Return_on_a_class_returns_ValueType_value() { var td = new TestableDummy { DummyValueType = 5 }; Assert.AreEqual(td.Return(c => c.DummyValueType, 8), 5); }
public void With_on_null_Dictionary_will_Return_Null() { var td = new TestableDummy { DummyValueType = 5, }; Assert.IsNull(td.DummyDictionary.With("TestValueLookup")); }
public void With_on_Dictionary_Without_Key_Returns_Null() { var td = new TestableDummy { DummyDictionary = new Dictionary <string, string>() }; Assert.IsNull(td.DummyDictionary.With("TestValueLookup")); }
public void Return_on_null_class_returns_failValue() { var testValue = "Erin Was here"; var td = new TestableDummy { DummyValueType = 5 }; Assert.AreNotEqual(td.Return(c => c.DummyString, "monkey"), testValue); }
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_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 Return_on_null_dictionary_returns_null() { var testValue = "Erin Was here"; var testKey = "tiger"; var td = new TestableDummy { DummyString = testValue, DummyValueType = 5 }; Assert.AreNotEqual(td.DummyDictionary.Return(testKey, "notTestValue"), testValue); }
public void Return_on_Dictionary_no_key_return_fail_value() { var testValue = "Erin Was here"; var testKey = "tiger"; var td = new TestableDummy { DummyString = testValue, DummyValueType = 5, DummyDictionary = new Dictionary <string, string>() }; td.DummyDictionary[testKey] = testValue; Assert.AreNotEqual(td.DummyDictionary.Return("Fire", "notTestValue"), testValue); }
public void With_on_Dictionary_returns_Value() { var testValue = "Erin Was here"; var testKey = "tiger"; var td = new TestableDummy { DummyString = testValue, DummyValueType = 5, DummyDictionary = new Dictionary <string, string>() }; td.DummyDictionary[testKey] = testValue; Assert.AreEqual(td.DummyDictionary.With(testKey), testValue); }
public void With_will_return_Null_when_class_is_null() { TestableDummy td = null; Assert.IsNull(td.With(c => c.DummyString)); }
public void With_on_Dictionary_returns_Value() { var testValue = "Erin Was here"; var testKey = "tiger"; var td = new TestableDummy { DummyString = testValue, DummyValueType = 5, DummyDictionary = new Dictionary<string, string>() }; td.DummyDictionary[testKey] = testValue; Assert.AreEqual(td.DummyDictionary.With(testKey), testValue); }
public void Return_on_Dictionary_no_key_return_fail_value() { var testValue = "Erin Was here"; var testKey = "tiger"; var td = new TestableDummy { DummyString = testValue, DummyValueType = 5, DummyDictionary = new Dictionary<string, string>() }; td.DummyDictionary[testKey] = testValue; Assert.AreNotEqual(td.DummyDictionary.Return("Fire", "notTestValue"), testValue); }
public void Return_on_null_dictionary_returns_null() { var testValue = "Erin Was here"; var testKey = "tiger"; var td = new TestableDummy { DummyString = testValue, DummyValueType = 5 }; Assert.AreNotEqual(td.DummyDictionary.Return(testKey, "notTestValue"), testValue); }
public void Return_on_a_class_returns_ValueType_failvalue() { var td = new TestableDummy { DummyString = "hi ho hi ho" }; Assert.AreNotEqual(td.Return(c => c.DummyValueType, 8), 5); }
public void Return_on_null_class_returns_failValue() { var testValue = "Erin Was here"; var td = new TestableDummy { DummyValueType = 5 }; Assert.AreNotEqual(td.Return(c => c.DummyString, "monkey"), testValue); }
public void Return_on_a_class_returns_ValueType_value() { var td = new TestableDummy { DummyValueType = 5 }; Assert.AreEqual(td.Return(c => c.DummyValueType, 8), 5); }
public void With_on_null_Dictionary_will_Return_Null() { var td = new TestableDummy { DummyValueType = 5, }; Assert.IsNull(td.DummyDictionary.With("TestValueLookup")); }
public void With_on_Dictionary_Without_Key_Returns_Null() { var td = new TestableDummy { DummyDictionary = new Dictionary<string, string>() }; Assert.IsNull(td.DummyDictionary.With("TestValueLookup")); }