public void GetValue_ExistingProperty() { IniEntry entry = new IniEntry(); entry.Key = "key value"; var value = entry.GetValue <string>(IniEntry.KeyProperty.Name); Assert.AreEqual("key value", value); }
public void GetValue_NonExistingProperty() { IniEntry entry = new IniEntry(); ExceptionTester.CallMethodAndExpectException <PropertyNotRegisteredException>(() => entry.GetValue <string>("Non-existing property")); }
public void GetValue_Null() { IniEntry entry = new IniEntry(); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => entry.GetValue <string>(null)); }