public void ToAnalysisType_ReturnsProperSetOfValues_ForMixedCaseNames() { //Arrange var actualAnalysisTypes = new AnalysisType[] { "QUOTATIONS".ToAnalysisType(), "Macd".ToAnalysisType(), "ADX".ToAnalysisType(), "Candlesticks".ToAnalysisType(), "PRICES".ToAnalysisType(), "TreNdliNes".ToAnalysisType(), "Dataset".ToAnalysisType() }; //Assert var expectedAnalysisTypes = new AnalysisType[] { AnalysisType.Quotations, AnalysisType.Macd, AnalysisType.Adx, AnalysisType.Candlesticks, AnalysisType.Prices, AnalysisType.Trendlines, AnalysisType.DataSet }; bool areEqual = expectedAnalysisTypes.HasEqualItems(actualAnalysisTypes); Assert.IsTrue(areEqual); }
public void ToAnalysisTypes_ReturnsProperSetOfValues_ForMixedCaseNames() { //Arrange string[] names = new string[] { "QUOTATIONS", "Macd", "Adx", "CANDLESTICKS", "prices", "TReNDLiNES" }; //Act var actualAnalysisTypes = names.ToAnalysisTypes(); //Assert var expectedAnalysisTypes = new AnalysisType[] { AnalysisType.Quotations, AnalysisType.Macd, AnalysisType.Adx, AnalysisType.Candlesticks, AnalysisType.Prices, AnalysisType.Trendlines }; bool areEqual = expectedAnalysisTypes.HasEqualItems(actualAnalysisTypes); Assert.IsTrue(areEqual); }
public void ToAnalysisTypes_ReturnsProperSetOfValues_ForLowerCaseNames() { //Arrange string[] names = new string[] { "quotations", "macd", "adx", "candlesticks", "prices", "trendlines" }; //Act var actualAnalysisTypes = names.ToAnalysisTypes(); //Assert var expectedAnalysisTypes = new AnalysisType[] { AnalysisType.Quotations, AnalysisType.Macd, AnalysisType.Adx, AnalysisType.Candlesticks, AnalysisType.Prices, AnalysisType.Trendlines }; bool areEqual = expectedAnalysisTypes.HasEqualItems(actualAnalysisTypes); Assert.IsTrue(areEqual); }