Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Mar 25, 2024
1 parent 2f3e993 commit 0c0ad28
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions DXFeedFrameworkTests/PublisherTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,30 +120,30 @@ final class PublisherTest: XCTestCase {
let testEventListenr = AnonymousClass { anonymCl in
anonymCl.callback = { events in
if events.count > 0 {
let event = events.first?.otcMarketsOrder
let event = events.first!.otcMarketsOrder

if event.eventSymbol == SYMBOL1 {
XCTAssert(event.price = order1.price)
XCTAssert(event.quoteAccessPayment = order1.quoteAccessPayment)
XCTAssert(event.isOpen = order1.isOpen)
XCTAssert(event.isUnsolicited = order1.isUnsolicited)
XCTAssert(event.otcMarketsPriceType = .order1.otcMarketsPriceType)
XCTAssert(event.isSaturated = order1.isSaturated)
XCTAssert(event.isAutoExecution = order1.isAutoExecution)
XCTAssert(event.isNmsConditional = order1.isNmsConditional)
XCTAssert(event.otcMarketsFlags = order1.otcMarketsFlags)
XCTAssert(event.price == order1.price)
XCTAssert(event.quoteAccessPayment == order1.quoteAccessPayment)
XCTAssert(event.isOpen == order1.isOpen)
XCTAssert(event.isUnsolicited == order1.isUnsolicited)
XCTAssert(event.otcMarketsPriceType == order1.otcMarketsPriceType)
XCTAssert(event.isSaturated == order1.isSaturated)
XCTAssert(event.isAutoExecution == order1.isAutoExecution)
XCTAssert(event.isNmsConditional == order1.isNmsConditional)
XCTAssert(event.otcMarketsFlags == order1.otcMarketsFlags)
receivedEvent1Exp.fulfill()
} else if event.eventSymbol == SYMBOL2 {
XCTAssert(event.price = order2.price)

XCTAssert(event.quoteAccessPayment = order2.quoteAccessPayment)
XCTAssert(event.isOpen = order2.isOpen)
XCTAssert(event.isUnsolicited = order2.isUnsolicited)
XCTAssert(event.otcMarketsPriceType = .order2.otcMarketsPriceType)
XCTAssert(event.isSaturated = order2.isSaturated)
XCTAssert(event.isAutoExecution = order2.isAutoExecution)
XCTAssert(event.isNmsConditional = order2.isNmsConditional)
XCTAssert(event.otcMarketsFlags = order2.otcMarketsFlags)
XCTAssert(event.price == order2.price)

XCTAssert(event.quoteAccessPayment == order2.quoteAccessPayment)
XCTAssert(event.isOpen == order2.isOpen)
XCTAssert(event.isUnsolicited == order2.isUnsolicited)
XCTAssert(event.otcMarketsPriceType == order2.otcMarketsPriceType)
XCTAssert(event.isSaturated == order2.isSaturated)
XCTAssert(event.isAutoExecution == order2.isAutoExecution)
XCTAssert(event.isNmsConditional == order2.isNmsConditional)
XCTAssert(event.otcMarketsFlags == order2.otcMarketsFlags)
receivedEvent2Exp.fulfill()
}
print(event)
Expand Down

0 comments on commit 0c0ad28

Please sign in to comment.