Example #1
0
        public static void SimpleObject_Serialization()
        {
            var obj = new Object();
            var str = obj.ToYamlString( SerializationOptions.EmitDefaults );

            Console.WriteLine( str );

            Assert.That( str.Contains( Object.CkeckPhraze ), "Contains check phrase" );
            Assert.That( str.Contains( "FalseValue" ), "Contains 'FalseValue'" );
            Assert.That( str.Contains( "ZeroValue" ), "Contains 'ZeroValue'" );
        }