public void GetBestCombinationTwoAndTwoSymbolsTest() { var input = new List<ScientificSymbol> { ScientificSymbol.Gear, ScientificSymbol.Gear, ScientificSymbol.Tablet, ScientificSymbol.Tablet }; var output1 = ScientificStructuresCategory.GetBestCombination(input, 1); Assert.AreEqual(1, output1.Count(s => s == ScientificSymbol.Compass)); }
public void GetBestCombinationThreeSameSymbolsTest() { var input = new List<ScientificSymbol> { ScientificSymbol.Compass, ScientificSymbol.Compass, ScientificSymbol.Compass }; var output1 = ScientificStructuresCategory.GetBestCombination(input, 2); Assert.AreEqual(5, output1.Count(s => s == ScientificSymbol.Compass)); }
public void GetBestCombinationTwoSameSymbolsTest() { var input = new List<ScientificSymbol> { ScientificSymbol.Gear, ScientificSymbol.Gear }; var output1 = ScientificStructuresCategory.GetBestCombination(input, 1); var output2 = ScientificStructuresCategory.GetBestCombination(input, 2); Assert.AreEqual(3, output1.Count(s => s == ScientificSymbol.Gear)); Assert.AreEqual(4, output2.Count(s => s == ScientificSymbol.Gear)); }
public void GetBestCombinationThreeAndOneAndOneSymbolsTest() { var input = new List<ScientificSymbol> { ScientificSymbol.Gear, ScientificSymbol.Gear, ScientificSymbol.Gear, ScientificSymbol.Tablet, ScientificSymbol.Compass }; var output1 = ScientificStructuresCategory.GetBestCombination(input, 1); var output2 = ScientificStructuresCategory.GetBestCombination(input, 2); Assert.AreEqual(4, output1.Count(s => s == ScientificSymbol.Gear)); Assert.AreEqual(5, output2.Count(s => s == ScientificSymbol.Gear)); }
public void GetBestCombinationThreeDifferentSymbolsTest() { var input = new List<ScientificSymbol> { ScientificSymbol.Gear, ScientificSymbol.Compass, ScientificSymbol.Tablet }; var output1 = ScientificStructuresCategory.GetBestCombination(input, 2); var output2 = ScientificStructuresCategory.GetBestCombination(input, 3); Assert.AreEqual(3, output1.Count(s => s == ScientificSymbol.Compass)); Assert.AreEqual(2, output2.Count(s => s == ScientificSymbol.Compass)); Assert.AreEqual(2, output2.Count(s => s == ScientificSymbol.Gear)); Assert.AreEqual(2, output2.Count(s => s == ScientificSymbol.Tablet)); }
public void GetBestCombinationOneSymbolTest() { var input = new List<ScientificSymbol> { ScientificSymbol.Gear }; var output1 = ScientificStructuresCategory.GetBestCombination(input, 1); var output2 = ScientificStructuresCategory.GetBestCombination(input, 2); Assert.AreEqual(2, output1.Count(s => s == ScientificSymbol.Gear)); Assert.AreEqual(1, output2.Count(s => s == ScientificSymbol.Gear)); Assert.AreEqual(1, output2.Count(s => s == ScientificSymbol.Tablet)); Assert.AreEqual(1, output2.Count(s => s == ScientificSymbol.Compass)); }