public void BeforeClass() { mySliceInt = BitSlice.Int(4); mySliceEnum = BitSlice.Enum <E4>(mySliceInt); mySliceBool = BitSlice.Bool(mySliceEnum); mySliceE1 = BitSlice.Enum <E1>(mySliceBool); }
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>()); }
public void TestBadEnums() { Assert.Throws <Assertion.AssertionException>(() => BitSlice.Enum <EMinus>()); Assert.Throws <Assertion.AssertionException>(() => BitSlice.Enum <E0>()); Assert.Throws <Assertion.AssertionException>(() => BitSlice.Enum <EUlong>()); }