public void TestDeserializeLSTA(string relativeFileName) { var yearMonth = GetYearMonth(relativeFileName); var provider = new AnmeldungResourceProvider(); var doc = Load(relativeFileName); TestDocument(doc, provider, provider.GetBaseFileNameAnmeldungssteuer(yearMonth.Item1, yearMonth.Item2)); }
public void AnmeldungTest() { var resourceProvider = new AnmeldungResourceProvider(); Assert.Throws<ArgumentOutOfRangeException>(() => resourceProvider.GetBaseFileNameAnmeldungssteuer(2003)); Assert.Throws<ArgumentOutOfRangeException>(() => resourceProvider.GetBaseFileNameAnmeldungssteuer(2018)); Assert.Throws<ArgumentOutOfRangeException>(() => resourceProvider.GetBaseFileNameAnmeldungssteuer(2011, 2)); var fileNames = new HashSet<string>(resourceProvider.FileNames); Assert.True(fileNames.Contains(resourceProvider.GetBaseFileNameAnmeldungssteuer(2004))); Assert.True(fileNames.Contains(resourceProvider.GetBaseFileNameAnmeldungssteuer(2017))); }