public void WriteTimeSpanTest() { var context = new SerializationTestContext(); context.AssertBinarySingleProperty(new TimeSpanGraph { Value = new TimeSpan(12, 30, 00) }); }
public void WriteUInt64Test() { var context = new SerializationTestContext(); context.AssertBinarySingleProperty(new UInt64Graph { Value = 42 }); }
public void WriteSingleTest() { var context = new SerializationTestContext(); context.AssertBinarySingleProperty(new SingleGraph { Value = 42.3f }); }
public void WriteStringTest() { var context = new SerializationTestContext(); context.AssertBinarySingleProperty(new StringGraph { Value = "Hello World" }); }
public void WriteGuidTest() { var context = new SerializationTestContext(); context.AssertBinarySingleProperty(new GuidGraph { Value = Guid.NewGuid() }); }
public void WriteEnumTest() { var context = new SerializationTestContext(); context.AssertBinarySingleProperty(new EnumGraph { Value = ApplicationType.Api }); }
public void WriteBooleanTest() { var context = new SerializationTestContext(); context.AssertBinarySingleProperty(new BooleanGraph { Value = true }); }
public void WriteDecimalTest() { var context = new SerializationTestContext(); context.AssertBinarySingleProperty(new DecimalGraph { Value = 42.74343M }); }
public void WriteDateTimeTest() { var context = new SerializationTestContext(); context.AssertBinarySingleProperty(new DateTimeGraph { Value = new DateTime(2001, 01, 07, 15, 30, 24) }); }