Exemple #1
0
 public void BeforeClass()
 {
     mySliceInt  = BitSlice.Int(4);
     mySliceEnum = BitSlice.Enum <E4>(mySliceInt);
     mySliceBool = BitSlice.Bool(mySliceEnum);
     mySliceE1   = BitSlice.Enum <E1>(mySliceBool);
 }
Exemple #2
0
        public void TestBadEnums()
        {
            Assert.Throws <Assertion.AssertionException>(() => BitSlice.Enum <EMinus>());
            Assert.Throws <Assertion.AssertionException>(() => BitSlice.Enum <EUint>());

            Assert.Throws <Assertion.AssertionException>(() => BitSlice.Enum <E0>());
            Assert.Throws <TypeInitializationException>(() => BitSlice.Enum <ELong>());
        }
Exemple #3
0
 public void TestBadEnums()
 {
     Assert.Throws <Assertion.AssertionException>(() => BitSlice.Enum <EMinus>());
     Assert.Throws <Assertion.AssertionException>(() => BitSlice.Enum <E0>());
     Assert.Throws <Assertion.AssertionException>(() => BitSlice.Enum <EUlong>());
 }