public void GetFormat_TypeNull_Throws() { var subject = new FormatSelector(); // ReSharper disable once AssignNullToNotNullAttribute Assert.Throws <ArgumentNullException>(() => subject.GetFormat(null, null)); }
public SerializationFormat GetFormat(Type type, object data) { var subject = new FormatSelector(); return(subject.GetFormat(type, data)); }