System.Runtime.Serialization.Formatters.Tests.SerializationInfoTests.NegativeValueNotFound C# (CSharp) Method

NegativeValueNotFound() private method

private NegativeValueNotFound ( ) : void
return void
        public void NegativeValueNotFound()
        {
            var si = new SerializationInfo(typeof(Serializable), new FormatterConverter());
            si.AddValue("a", 1);
            Assert.Throws<SerializationException>(() => si.GetInt32("b"));
        }
    }