public void IntFitsUshort() { using (var a = new HugeInt(ushort.MaxValue)) { Assert.IsTrue(a.FitsUshort()); a.Value = a + 1; Assert.IsFalse(a.FitsUshort()); a.SetTo(0); Assert.IsTrue(a.FitsUshort()); a.Value = a - 1; Assert.IsFalse(a.FitsUshort()); } }