public void if_timeframe_is_null_isValid_returns_false() { Asset asset = new Asset(1, "x"); AssetTimeframe atf = new AssetTimeframe(asset, null); Assert.IsFalse(atf.isValid()); }
public void if_asset_is_null_isValid_returns_false() { Timeframe timeframe = Timeframe.GetTimeframe(TimeframeSymbol.M30); AssetTimeframe atf = new AssetTimeframe(null, timeframe); Assert.IsFalse(atf.isValid()); }
public void if_both_asset_and_timeframe_are_set_isValid_returns_true() { Asset asset = new Asset(1, "x"); Timeframe timeframe = Timeframe.GetTimeframe(TimeframeSymbol.M30); AssetTimeframe atf = new AssetTimeframe(asset, timeframe); Assert.IsTrue(atf.isValid()); }