NUnit.Framework.Assert.Positive(int)

Here are the examples of the csharp api NUnit.Framework.Assert.Positive(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 Source : ClientCommandAsyncTests.cs
with MIT License
from mathpaquette

[Test]
        public async Task Should_GetScannerDataAsync_String()
        {
            // Arrange
            var subscription = new ScannerSubscription()
            {
                ScanCode = "MOST_ACTIVE",
                Instrument = "STK",
                LocationCode = "STK.US"
            };

            // Act
            var scanners = await _client.GetScannerDataAsync(subscription, "", "");

            // replacedert
            var symbols = scanners.Select(x => x.ContractDetails.Contract.Symbol);
            replacedert.Positive(symbols.Count());
        }

19 Source : ClientCommandAsyncTests.cs
with MIT License
from mathpaquette

[Test]
        public async Task Should_GetScannerDataAsync_Tags()
        {
            // Arrange
            var subscription = new ScannerSubscription()
            {
                ScanCode = "MOST_ACTIVE",
                Instrument = "STK",
                LocationCode = "STK.US"
            };

            // Act
            var scanners = await _client.GetScannerDataAsync(subscription, new List<TagValue>(), new List<TagValue>());

            // replacedert
            var symbols = scanners.Select(x => x.ContractDetails.Contract.Symbol);
            replacedert.Positive(symbols.Count());
        }