Exemplo n.º 1
0
            public void ReturnsFalseForNotMovedField()
            {
                var notMovedProperty = DBCInspector.GetRecordProperties(typeof(TestDBCRecordWithSingleMovedField))
                                       .First(p => p.Name == nameof(TestDBCRecordWithSingleMovedField.FieldA));

                Assert.IsFalse(DBCInspector.HasPropertyMovedInVersion(WarcraftVersion.BurningCrusade, notMovedProperty));
            }
Exemplo n.º 2
0
            public void ReturnsFalseForMovedFieldButNotInTheSpecifiedVersion()
            {
                var movedProperty = DBCInspector.GetRecordProperties(typeof(TestDBCRecordWithSingleMovedField))
                                    .First(p => p.Name == nameof(TestDBCRecordWithSingleMovedField.FieldC));

                Assert.IsFalse(DBCInspector.HasPropertyMovedInVersion(WarcraftVersion.Classic, movedProperty));
            }