Example #1
0
 public void T01_Flags_01_Add()
 {
     TestHelpers.CatchUnexpected(() => {
         TestEnum t = TestEnum.None;
         Assert.AreEqual(TestEnum.None, t);
         t = t.AddFlag(TestEnum.One);
         t = t.AddFlag(TestEnum.Three);
         t = t.AddFlag(TestEnum.Six);
         Assert.True(t.HasFlag(TestEnum.None));
         Assert.True(t.HasFlag(TestEnum.One));
         Assert.True(t.HasFlag(TestEnum.Three));
         Assert.True(t.HasFlag(TestEnum.Six));
     });
 }
Example #2
0
 public void TestUInt64AddFlag()
 {
     Flag1.AddFlag(Flag2).ShouldBeEquivalentTo(Flag1Flag2);
 }
Example #3
0
 public void TestSByteAddFlag()
 {
     Flag1.AddFlag(Flag2).ShouldBeEquivalentTo(Flag1Flag2);
 }