public void TestSetDefaultsV0TkAnimMetadata() { var header = new MBINHeader(); header.SetDefaultsV0(typeof(NMS.Toolkit.TkAnimMetadata)); Assert.AreEqual(MBINHeader.MBIN_MAGIC, header.MagicID); Assert.AreEqual(MBINHeader.MBIN_VERSION, header.FormatID); Assert.AreEqual(MBINHeader.TKANIMMETADATA_TAG, header.Timestamp); Assert.AreEqual(TKANIMMETADATA_GUID, header.TemplateGUID); Assert.AreEqual("", header.TemplateName); Assert.AreEqual(MBINHeader.TKANIMMETADATA_PADDING, header.EndPadding); Assert.AreEqual(VERSION_STRING, header.GetMBINVersion().ToString()); }
public void TestSetDefaultsV0Common() { var header = new MBINHeader(); header.SetDefaultsV0(); Assert.AreEqual(MBINHeader.MBIN_MAGIC, header.MagicID); Assert.AreEqual(MBINHeader.MBIN_VERSION, header.FormatID); Assert.AreEqual(0ul, header.Timestamp); Assert.AreEqual(0ul, header.TemplateGUID); Assert.AreEqual("", header.TemplateName); Assert.AreEqual(0ul, header.EndPadding); Assert.AreEqual(VERSION_STRING, header.GetMBINVersion().ToString()); }