public void UsingEnumArguments(MyLongEnum arg1, MyIntEnum arg2, MyShortEnum arg3)
 {
     if (IsEnabled())
     {
         WriteEvent(306, arg1, arg2, arg3);
     }
 }
 public void UsingAllEnumArguments(MyLongEnum arg1, MyIntEnum arg2, MyShortEnum arg3,
                                   MyByteEnum arg4, MySByteEnum arg5, MyUShortEnum arg6, MyUIntEnum arg7, MyULongEnum arg8)
 {
     if (IsEnabled())
     {
         WriteEvent(307, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
     }
 }
Beispiel #3
0
        public void ShortIsSentForShortEnum()
        {
            MyShortEnum shortEnum = MyShortEnum.G;

            var writer = new NetworkWriter();

            writer.Write(shortEnum);

            // should only be 1 byte
            Assert.That(writer.Length, Is.EqualTo(2));
        }
 public void UsingAllEnumArguments(MyLongEnum arg1, MyIntEnum arg2, MyShortEnum arg3,
     MyByteEnum arg4, MySByteEnum arg5, MyUShortEnum arg6, MyUIntEnum arg7, MyULongEnum arg8)
 {
     if (IsEnabled()) { WriteEvent(307, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); }
 }
 public void UsingEnumArguments(MyLongEnum arg1, MyIntEnum arg2, MyShortEnum arg3)
 {
     if (IsEnabled()) { WriteEvent(306, arg1, arg2, arg3); }
 }
Beispiel #6
0
			public MyClassWithEnumMembers(int value)
			{
				_myByteEnum = (MyByteEnum) value;
				_mySByteEnum = (MySByteEnum) value;
				_myShortEnum = (MyShortEnum) value;
				_myUShortEnum = (MyUShortEnum) value;
				_myIntEnum = (MyIntEnum) value;
				_myUIntEnum = (MyUIntEnum) value;
				_myLongEnum = (MyLongEnum) value;
				_myULongEnum = (MyULongEnum) value;
			}