Exemplo n.º 1
0
        public void GetExtraPresets_AnnoVersionIsNullOrWhiteSpace_ShouldReturnEmptyList(string annoVersion)
        {
            // Arrange/Act
            var result = ExtraPresets.GetExtraPresets(annoVersion);

            // Assert
            Assert.Empty(result);
        }
Exemplo n.º 2
0
        public void GetExtraPresets_AnnoVersionIsKnown_ShouldReturnCorrectExtraPresetsCount(string annoVersion, int expectedCount)
        {
            // Arrange/Act
            var result = ExtraPresets.GetExtraPresets(annoVersion).ToList();

            // Assert
            Assert.Equal(expectedCount, result.Count);
        }
Exemplo n.º 3
0
        public void GetExtraPresets_EveryElement_ShouldContainValuesForAllLocalizations(string annoVersion)
        {
            // Arrange/Act
            var result = ExtraPresets.GetExtraPresets(annoVersion).ToList();

            // Assert
            Assert.All(result, x =>
            {
                Assert.False(string.IsNullOrWhiteSpace(x.LocaEng));
                Assert.False(string.IsNullOrWhiteSpace(x.LocaEsp));
                Assert.False(string.IsNullOrWhiteSpace(x.LocaFra));
                Assert.False(string.IsNullOrWhiteSpace(x.LocaGer));
                Assert.False(string.IsNullOrWhiteSpace(x.LocaPol));
                Assert.False(string.IsNullOrWhiteSpace(x.LocaRus));
            });
        }