public void IgnoresFieldThatUseIgnoreSerializeAttribute() { var toWrite = new HasIgnoredField(); var reflectionWriter = new ReflectionTypeWriter(toWrite.GetType()); reflectionWriter.WriteType(toWrite, this.mockedWriter.Object); this.mockedWriter.Verify(mr => mr.Write(It.IsAny<object>()), Times.Once()); }
public void IgnoresFieldThatUseIgnoreSerializeAttribute() { var toWrite = new HasIgnoredField(); var reflectionWriter = new ReflectionTypeWriter(toWrite.GetType()); reflectionWriter.WriteType(toWrite, this.mockedWriter.Object); this.mockedWriter.Verify(mr => mr.Write(It.IsAny <object>()), Times.Once()); }