public void DataDictsWithSameKeyAndEmptyDataItemAreEqual() { _compData1["key"] = new ComponentData(); _compData2["key"] = new ComponentData(); Assert.IsTrue(VoicepackComparer.EqualComponentData(_compData1, _compData2)); }
public void DataDictWithSameSizeButDifferentKeysAreNotEqual() { _compData1["key"] = new ComponentData(); _compData2["otherKey"] = new ComponentData(); Assert.IsFalse(VoicepackComparer.EqualComponentData(_compData1, _compData2)); }
public void DataDicsWithSameKeyAndSameDataItemSizesAreEqual() { const int dataItemsSize = 5; _compData1["key"] = new ComponentData() { data = new byte[dataItemsSize] }; _compData2["key"] = new ComponentData() { data = new byte[dataItemsSize] }; Assert.IsTrue(VoicepackComparer.EqualComponentData(_compData1, _compData2)); }
public void DataDicsWithSameKeyButDifferentDataItemSizesAreNotEqual() { const int dataItemsSize = 5; _compData1["key"] = new ComponentData() { data = new byte[dataItemsSize] }; _compData2["key"] = new ComponentData() { data = new byte[dataItemsSize + 1] }; Assert.IsFalse(VoicepackComparer.EqualComponentData(_compData1, _compData2)); }
public void DataDictWithDifferentSizeAreNotEqual() { _compData1["key"] = new ComponentData(); Assert.IsFalse(VoicepackComparer.EqualComponentData(_compData1, _compData2)); }
public void EmptyComponentDataDictsAreEqual() { Assert.IsTrue(VoicepackComparer.EqualComponentData(_compData1, _compData2)); }
public void NullAndEmptyDataDictAreNotEqual() { Assert.IsFalse(VoicepackComparer.EqualComponentData(null, _compData1)); }
public void NullComponentDataIsEqual() { Assert.IsTrue(VoicepackComparer.EqualComponentData(null, null)); }