public void String8_Prefix() { String8 full = "One.Two.Three".TestConvert(); String8 start = "One".TestConvert(); String8 part = "Two".TestConvert(); String8 startInsensitive = "ONE".TestConvert(); Assert.AreEqual(0, start.CompareAsPrefixTo(full)); }
public void String8_Prefix() { String8 full = String8.Convert("One.Two.Three", new byte[13]); String8 start = String8.Convert("One", new byte[3]); String8 part = String8.Convert("Two", new byte[3]); String8 startInsensitive = String8.Convert("ONE", new byte[3]); Assert.AreEqual(0, start.CompareAsPrefixTo(full)); }