public void ctor_Type_IsSet(Transaction sut) { Assert.Equal<TransactionType>(TransactionType.Sell, sut.Type); }
public void ctor_TickerIndex_IsSet(Transaction sut) { Assert.Equal<int>(1, sut.TickerIndex); }
public void ctor_NetProfitRate_IsSet(Transaction sut) { Assert.Equal<double>(1, sut.NetProfitRate); }
public void ctor_Quantity_IsSet(Transaction sut) { Assert.Equal<double>(1, sut.Quantity); }
public void Transactions_SetToSth_GetReturnsWhatWasSet(SimulationResultQuote sut) { var transactions = new Transaction[] { new Transaction(TransactionType.Buy, 1, 1, 0, 0, 1) }.AsReadOnlyList(); sut.Transactions = transactions; Assert.Same(transactions, sut.Transactions); }