public void AmbigiousProperties_LowerCaseProperty() { var input = new AmbigiousNames { POTENTIALLY_AMBIGIOUS_PROPERTY = "burger", potentially_ambigious_property = "chips", }; var result = Get(input, "potentially_ambigious_property"); Assert.AreEqual("chips", result); }
public void AmbigiousProperties_UpperCaseProperty() { var input = new AmbigiousNames { POTENTIALLY_AMBIGIOUS_PROPERTY = "foo", potentially_ambigious_property = "bar", }; var result = Get(input, "POTENTIALLY_AMBIGIOUS_PROPERTY"); Assert.AreEqual("foo", result); }
public void AmbigiousPropertyNames_NoExactMatch() { var input = new AmbigiousNames { POTENTIALLY_AMBIGIOUS_PROPERTY = "foo", potentially_ambigious_property = "bar", }; var result = Get(input, "potentially_AMBIGIOUS_property"); Assert.Null(result); }
public void AmbigiousProperties_LowerCaseField() { var input = new AmbigiousNames { POTENTIALLY_AMBIGIOUS_FIELD = "burger", potentially_ambigious_field = "chips", }; var result = Get(input, "potentially_ambigious_field"); Assert.AreEqual("chips", result); }
public void AmbigiousProperties_UpperCaseField() { var input = new AmbigiousNames { POTENTIALLY_AMBIGIOUS_FIELD = "foo", potentially_ambigious_field = "bar", }; var result = Get(input, "POTENTIALLY_AMBIGIOUS_FIELD"); Assert.AreEqual("foo", result); }
public void AmbigiousFieldNames_NoExactMatch() { var input = new AmbigiousNames { POTENTIALLY_AMBIGIOUS_FIELD = "foo", potentially_ambigious_field = "bar", }; var result = Get(input, "potentially_AMBIGIOUS_field"); Assert.Null(result); }