Beispiel #1
0
 public void IsAValueType()
 {
     Assert.IsTrue(ProtocolBuffers.IsAValueType(typeof(double)));
     Assert.IsTrue(ProtocolBuffers.IsAValueType(typeof(float)));
     Assert.IsTrue(ProtocolBuffers.IsAValueType(typeof(int)));
     Assert.IsTrue(ProtocolBuffers.IsAValueType(typeof(long)));
     Assert.IsTrue(ProtocolBuffers.IsAValueType(typeof(uint)));
     Assert.IsTrue(ProtocolBuffers.IsAValueType(typeof(ulong)));
     Assert.IsTrue(ProtocolBuffers.IsAValueType(typeof(bool)));
     Assert.IsTrue(ProtocolBuffers.IsAValueType(typeof(string)));
     Assert.IsTrue(ProtocolBuffers.IsAValueType(typeof(byte[])));
     Assert.IsFalse(ProtocolBuffers.IsAValueType(typeof(KRPC.Schema.KRPC.Request)));
     Assert.IsFalse(ProtocolBuffers.IsAValueType(typeof(KRPC.Schema.KRPC.Response)));
     Assert.IsFalse(ProtocolBuffers.IsAValueType(null));
     Assert.IsFalse(ProtocolBuffers.IsAValueType(typeof(ProtocolBuffersTest)));
 }