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); }
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); }