Ejemplo n.º 1
0
        public void WhenCallingCanWriteShouldBeAbleToWriteTypesItUnderstands()
        {
            var formatter = new ProtoBufFormatter();
            var canWrite  = formatter.CanWriteType(typeof(Item));

            Assert.True(canWrite);
        }
Ejemplo n.º 2
0
        public void WhenCallingCanWriteShouldNotBeAbleToWriteTypesItDoesNotUnderstand()
        {
            var formatter = new ProtoBufFormatter();
            var canWrite  = formatter.CanWriteType(typeof(EvilItem));

            Assert.False(canWrite);
        }
 public void WhenCallingCanWriteShouldBeAbleToWriteTypesItUnderstands()
 {
     var formatter = new ProtoBufFormatter();
     var canWrite = formatter.CanWriteType(typeof(Item));
     Assert.True(canWrite);
 }
 public void WhenCallingCanWriteShouldNotBeAbleToWriteTypesItDoesNotUnderstand()
 {
     var formatter = new ProtoBufFormatter();
     var canWrite = formatter.CanWriteType(typeof(EvilItem));
     Assert.False(canWrite);
 }