예제 #1
0
 public void ctor_Type_IsSet(Transaction sut)
 {
     Assert.Equal<TransactionType>(TransactionType.Sell, sut.Type);
 }
예제 #2
0
 public void ctor_TickerIndex_IsSet(Transaction sut)
 {
     Assert.Equal<int>(1, sut.TickerIndex);
 }
예제 #3
0
 public void ctor_NetProfitRate_IsSet(Transaction sut)
 {
     Assert.Equal<double>(1, sut.NetProfitRate);
 }
예제 #4
0
 public void ctor_Quantity_IsSet(Transaction sut)
 {
     Assert.Equal<double>(1, sut.Quantity);
 }
예제 #5
0
 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);
 }