示例#1
0
        public void Write__Writting_A_Valid_Layer()
        {
            group = new SparkGroup();

            group.Id = 1;
            group.Name = "Group Name";
            group.Color = new ColorRgba(0xCC, 0x99, 0xFF, 0xAA);

            byte[] writtenData = group.Write();
            byte[] expected = File.ReadAllBytes("Content/Tests/Group/Group-Data.bin");

            Assert.AreEqual(BitConverter.ToString(expected), BitConverter.ToString(writtenData));
        }