public void Serialize_TypeWithoutNull_Throws() { var subject = new Formatter( _binarySerializerMock.Object, _unityJsonSerializerMock.Object, _formatSelectorMock.Object); var type = new TypeWithoutAssemblyQualifiedName(); // ReSharper disable once AssignNullToNotNullAttribute Assert.Throws <ArgumentException>(() => subject.Serialize(type, new object())); }
public void Serialize_TypeWithoutNull_Throws() { var subject = new Formatter( _binarySerializerMock.Object, _unityJsonSerializerMock.Object, _formatSelectorMock.Object); var type = new TypeWithoutAssemblyQualifiedName(); // ReSharper disable once AssignNullToNotNullAttribute Assert.Throws<ArgumentException>(() => subject.Serialize(type, new object())); }