Beispiel #1
0
        public void LoadDataFromXmlFile()
        {
            sut.LoadFrom(testFileName);

            Assert.That(sut.AvailableUnits().Contains(testUnitName), Is.True);

            Assert.That(sut.GetLength(testUnitName), Is.EqualTo(testUnitlength));
            Assert.That(sut.GetRank(testUnitName), Is.EqualTo(testUnitRank));
        }
 internal void LoadFromFile(string file)
 {
     TimespansUnitManager.Clear();
     TimespansUnitManager.LoadFrom(file);
 }