AgileWallaby.Ehcache.Test.JsonSerializerTest.Cannot_Deserialize_Without_Type_Parameter C# (CSharp) Method

Cannot_Deserialize_Without_Type_Parameter() private method

private Cannot_Deserialize_Without_Type_Parameter ( ) : void
return void
        public void Cannot_Deserialize_Without_Type_Parameter()
        {
            var ser = new JsonSerializer();
            var str = new MemoryStream();
            var contract = new TestContract { PropertyOne = "propertyOne", PropertyTwo = 42 };
            ser.Serialize(str, contract);

            str.Seek(0, SeekOrigin.Begin);
            try
            {
                ser.Deserialize(str);
                Assert.Fail("Should have thrown an exception.");
            }
            catch (NotImplementedException)
            {
                // Expected result.
            }
        }