public void BOMLength() { Assert.AreEqual(2, EncodingHelper.BOMLength(1200)); Assert.AreEqual(3, EncodingHelper.BOMLength(65001)); Assert.AreEqual(4, EncodingHelper.BOMLength(12001)); Assert.AreEqual(0, EncodingHelper.BOMLength(1252)); }