示例#1
0
        public void WhenCallingCanReadShouldBeAbleToReadTypesItUnderstands()
        {
            var formatter = new ProtoBufFormatter();
            var canRead   = formatter.CanReadType(typeof(Item));

            Assert.True(canRead);
        }
示例#2
0
        public void WhenCallingCanReadShouldNotBeAbleToReadTypesItDoesNotUnderstand()
        {
            var formatter = new ProtoBufFormatter();
            var canRead   = formatter.CanReadType(typeof(EvilItem));

            Assert.False(canRead);
        }
 public void WhenCallingCanReadShouldBeAbleToReadTypesItUnderstands()
 {
     var formatter = new ProtoBufFormatter();
     var canRead = formatter.CanReadType(typeof(Item));
     Assert.True(canRead);
 }
 public void WhenCallingCanReadShouldNotBeAbleToReadTypesItDoesNotUnderstand()
 {
     var formatter = new ProtoBufFormatter();
     var canRead = formatter.CanReadType(typeof (EvilItem));
     Assert.False(canRead);
 }