NUnit.Framework.Assert.GreaterOrEqual(double, double)

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

17 Examples 7

1. Example

Project: GlmSharp
Source File: lvec2.Test.cs
View license
[Test]
        public void TriangleInequality()
        {
            {
                var v0 = new/n ..... /n //View Source file for more details /n }

2. Example

Project: GlmSharp
Source File: cvec2.Test.cs
View license
[Test]
        public void TriangleInequality()
        {
            {
                var v0 = new/n ..... /n //View Source file for more details /n }

3. Example

Project: GlmSharp
Source File: dvec4.Test.cs
View license
[Test]
        public void TriangleInequality()
        {
            {
                var v0 = new/n ..... /n //View Source file for more details /n }

4. Example

Project: GlmSharp
Source File: dvec2.Test.cs
View license
[Test]
        public void TriangleInequality()
        {
            {
                var v0 = new/n ..... /n //View Source file for more details /n }

5. Example

Project: GlmSharp
Source File: lvec4.Test.cs
View license
[Test]
        public void TriangleInequality()
        {
            {
                var v0 = new/n ..... /n //View Source file for more details /n }

6. Example

Project: GlmSharp
Source File: lvec3.Test.cs
View license
[Test]
        public void TriangleInequality()
        {
            {
                var v0 = new/n ..... /n //View Source file for more details /n }

7. Example

Project: GlmSharp
Source File: cvec4.Test.cs
View license
[Test]
        public void TriangleInequality()
        {
            {
                var v0 = new/n ..... /n //View Source file for more details /n }

8. Example

Project: GlmSharp
Source File: dvec3.Test.cs
View license
[Test]
        public void TriangleInequality()
        {
            {
                var v0 = new/n ..... /n //View Source file for more details /n }

9. Example

Project: GlmSharp
Source File: cvec3.Test.cs
View license
[Test]
        public void TriangleInequality()
        {
            {
                var v0 = new/n ..... /n //View Source file for more details /n }

10. Example

Project: nuve
Source File: DistanceTest.cs
View license
public void NotNegativeTest(string s1, string s2)
        {
            double distance = d.Measure(s1, s2);
            Assert.GreaterOrEqual(distance, 0);
        }

11. Example

View license
[Test]
        public void SmartPlayerShouldWinIn99PercentOfTheGamesVsDummy()
        {
            const int GamesToPlay = 4000;
            var smartPlayerWins = this.SimulateGamesAndGetSmartPlayerWins(GamesToPlay);
            Console.WriteLine(smartPlayerWins);
            Assert.GreaterOrEqual(smartPlayerWins, 0.99 * GamesToPlay);
        }

12. Example

View license
[Test]
        public void Float64()
        {
            for (int i = 0; i < 10000; i++)
            {
                double value = _rng.Float64();
                Assert.GreaterOrEqual(value, 0);
                Assert.Less(value, 1);
            }
        }

13. Example

View license
[Test]
        public void TestLongRunning()
        {
            var starTicks = DateTime.Now.Ticks;
            var collection = map.Values(Predicates.Sql("this == 'value5'"));
            
            var timeSpan = new TimeSpan(DateTime.Now.Ticks - starTicks);
            Assert.IsNotEmpty(collection);
            Assert.GreaterOrEqual(timeSpan.TotalSeconds, 300);
        }

14. Example

View license
[Test]
        public void FindMinimum_Rosenbrock_MinimumGreateerOrEqualToLowerBoundary()
        {
            var obj = ObjectiveFunction.Gradient(RosenbrockFunction.Value, RosenbrockFunction.Gradient);
            var solver = new BfgsBMinimizer(1e-5, 1e-5, 1e-5, maximumIterations: 1000);

            var lowerBound = new DenseVector(new[] { 2, 2.0 });
            var upperBound = new DenseVector(new[] { 5.0, 5.0 });

            var initialGuess = new DenseVector(new[] { 2.5, 2.5 });

            var result = solver.FindMinimum(obj, lowerBound, upperBound, initialGuess);

            Assert.GreaterOrEqual(result.MinimizingPoint[0],lowerBound[0]);
            Assert.GreaterOrEqual(result.MinimizingPoint[1], lowerBound[1]);
        }

15. Example

Project: DReAM
Source File: BlockingQueueTests.cs
View license
[Test]
        public void Dequeue_times_out_as_specified() {
            BlockingQueue<string> q = new BlockingQueue<string>();
            DateTime start = GlobalClock.UtcNow;
            string x;
            Assert.IsFalse(q.TryDequeue(TimeSpan.FromSeconds(1), out x));
            Assert.IsNull(x);
            TimeSpan elapsed = GlobalClock.UtcNow.Subtract(start);
            Assert.GreaterOrEqual(elapsed.TotalSeconds, 0.95);
            Assert.LessOrEqual(elapsed.TotalSeconds, 1.1d);
        }

16. Example

Project: DReAM
Source File: BlockingQueueTests.cs
View license
[Test]
        public void Many_consumers_with_timeouts() {
            BlockingQueue<string> /n ..... /n //View Source file for more details /n }

17. Example

Project: kafka-sharp
Source File: TestNode.cs.cs
View license
[Test]
        public void TestProduceWithNoErrors()
        {
            double requestLatency = 0;
            var expectedLatency = 3;
            var node = new Node("Node", () => new EchoConnectionMock(false, expectedLatency), new ProduceSerialization(new CommonResponse<ProducePartitionResponse>()),
                                new Configuration {ProduceBufferingTime = TimeSpan.FromMilliseconds(15)}, 1);
            var count = new CountdownEvent(2);
            node.ResponseReceived += (n, l) =>
                {
                    Assert.AreSame(node, n);
                    requestLatency = l;
                    count.Signal();
                };
            bool batch = false;
            node.ProduceBatchSent += (n, c, s) =>
            {
                Assert.That(n, Is.EqualTo(node));
                Assert.That(c, Is.EqualTo(1));
                Assert.That(s, Is.EqualTo(0));
                batch = true;
                count.Signal();
            };

            node.Produce(ProduceMessage.New("test", 0, new Message(), DateTime.UtcNow.AddDays(1)));

            count.Wait();
            Assert.IsTrue(batch);
            Assert.GreaterOrEqual(requestLatency, 1);
        }