예제 #1
0
        public void GetFormat_TypeNull_Throws()
        {
            var subject = new FormatSelector();

            // ReSharper disable once AssignNullToNotNullAttribute
            Assert.Throws <ArgumentNullException>(() => subject.GetFormat(null, null));
        }
예제 #2
0
        public SerializationFormat GetFormat(Type type, object data)
        {
            var subject = new FormatSelector();

            return(subject.GetFormat(type, data));
        }