NUnit.Framework.Assert.GreaterOrEqual(float, float, string)

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

33 Examples 7

1. Example

View license
[Test]
		public void GreaterOrEqual_Float()
		{
			Assert.GreaterOrEqual(f1, f1, "float");
			Assert.GreaterOrEqual(f1, f2, "float");
		}

2. Example

View license
[Test]
		public void GreaterOrEqual_Float()
		{
			Assert.GreaterOrEqual(f1, f1, "float");
			Assert.GreaterOrEqual(f1, f2, "float");
		}

3. Example

Project: AutoTest.Net
Source File: GreaterEqualFixture.cs
View license
[Test]
		public void GreaterOrEqual_Float()
		{
			Assert.GreaterOrEqual(f1, f1, "float");
			Assert.GreaterOrEqual(f1, f2, "float");
		}

4. Example

View license
[Test]
		public void GreaterOrEqual_Float()
		{
			Assert.GreaterOrEqual(f1, f1, "float");
			Assert.GreaterOrEqual(f1, f2, "float");
		}

5. Example

Project: AutoTest.Net
Source File: GreaterEqualFixture.cs
View license
[Test]
		public void GreaterOrEqual_Float()
		{
			Assert.GreaterOrEqual(f1, f1, "float");
			Assert.GreaterOrEqual(f1, f2, "float");
		}

6. Example

Project: AutoTest.Net
Source File: GreaterEqualFixture.cs
View license
[Test]
		public void GreaterOrEqual_Float()
		{
			Assert.GreaterOrEqual(f1, f1, "float");
			Assert.GreaterOrEqual(f1, f2, "float");
		}

7. Example

Project: nunit
Source File: GreaterEqualFixture.cs
View license
[Test]
        public void GreaterOrEqual_Float()
        {
            Assert.GreaterOrEqual(f1, f1, "float");
            Assert.GreaterOrEqual(f1, f2, "float");
        }

8. Example

Project: MatterControl
Source File: OemProfileTests.cs
View license
[Test]
		public void FirstLayerExtrusionWidthGreaterThanNozzleDiameterIfSet()
		{
			ValidateOnAllPrinters((printer, settings) =>
			{
				float nozzleDiameter = float.Parse(settings.GetValue(SettingsKey.nozzle_diameter));

				string firstLayerExtrusionWidthString = settings.GetValue(SettingsKey.first_layer_extrusion_width);
				if (!string.IsNullOrEmpty(firstLayerExtrusionWidthString))
				{
					float firstLayerExtrusionWidth = ValueOrPercentageOf(firstLayerExtrusionWidthString, nozzleDiameter);
					if (firstLayerExtrusionWidth == 0)
					{
						// Ignore zeros
						return;
					}

					Assert.GreaterOrEqual(firstLayerExtrusionWidth, nozzleDiameter, "[first_layer_extrusion_width] must be nozzle diameter or greater: " + printer.RelativeFilePath);
				}
			});
		}

9. Example

Project: AutoTest.Net
Source File: GreaterEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.GreaterOrEqual( 5, 3L, "int to long");
			Assert.Gr/n ..... /n //View Source file for more details /n }

10. Example

View license
[Test]
		public void MixedTypes()
		{	
			Assert.GreaterOrEqual( 5, 3L, "int to long");
			Assert.Gr/n ..... /n //View Source file for more details /n }

11. Example

Project: AutoTest.Net
Source File: GreaterEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.GreaterOrEqual( 5, 3L, "int to long");
			Assert.Gr/n ..... /n //View Source file for more details /n }

12. Example

Project: AutoTest.Net
Source File: GreaterEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.GreaterOrEqual( 5, 3L, "int to long");
			Assert.Gr/n ..... /n //View Source file for more details /n }

13. Example

Project: nunit
Source File: GreaterEqualFixture.cs
View license
[Test]
        public void MixedTypes()
        {	
            Assert.GreaterOrEqual( 5, 3L, "int to/n ..... /n //View Source file for more details /n }

14. Example

Project: mathnet-numerics
Source File: BiCgStabTest.cs
View license
[Test]
        public void SolvePoissonMatrixAndBackMultiply()
        {
            // Create the m/n ..... /n //View Source file for more details /n }

15. Example

Project: mathnet-numerics
Source File: MlkBiCgStabTest.cs
View license
[Test]
        public void SolvePoissonMatrixAndBackMultiply()
        {
            // Create the m/n ..... /n //View Source file for more details /n }

16. Example

View license
[Test]
		public void MixedTypes()
		{	
			Assert.GreaterOrEqual( 5, 3L, "int to long");
			Assert.Gr/n ..... /n //View Source file for more details /n }

17. Example

View license
[Test]
		public void MixedTypes()
		{	
			Assert.GreaterOrEqual( 5, 3L, "int to long");
			Assert.Gr/n ..... /n //View Source file for more details /n }

18. Example

Project: mathnet-numerics
Source File: GpBiCgTest.cs
View license
[Test]
        public void SolvePoissonMatrixAndBackMultiply()
        {
            // Create the m/n ..... /n //View Source file for more details /n }

19. Example

Project: mathnet-numerics
Source File: MlkBiCgStabTest.cs
View license
[Test]
        public void SolvePoissonMatrixAndBackMultiply()
        {
            // Create the m/n ..... /n //View Source file for more details /n }

20. Example

Project: mathnet-numerics
Source File: GpBiCgTest.cs
View license
[Test]
        public void SolvePoissonMatrixAndBackMultiply()
        {
            // Create the m/n ..... /n //View Source file for more details /n }

21. Example

Project: mathnet-numerics
Source File: BiCgStabTest.cs
View license
[Test]
        public void SolvePoissonMatrixAndBackMultiply()
        {
            // Create the m/n ..... /n //View Source file for more details /n }

22. Example

Project: mathnet-numerics
Source File: MlkBiCgStabTest.cs
View license
[Test]
        public void SolveUnitMatrixAndBackMultiply()
        {
            // Create the identity matrix
            var matrix = SparseMatrix.CreateIdentity(100);

            // Create the y vector
            var y = Vector<Complex32>.Build.Dense(matrix.RowCount, 1);

            // Create an iteration monitor which will keep track of iterative convergence
            var monitor = new Iterator<Complex32>(
                new IterationCountStopCriterion<Complex32>(MaximumIterations),
                new ResidualStopCriterion<Complex32>(ConvergenceBoundary),
                new DivergenceStopCriterion<Complex32>(),
                new FailureStopCriterion<Complex32>());

            var solver = new MlkBiCgStab();

            // Solve equation Ax = y
            var x = matrix.SolveIterative(y, solver, monitor);

            // Now compare the results
            Assert.IsNotNull(x, "#02");
            Assert.AreEqual(y.Count, x.Count, "#03");

            // Back multiply the vector
            var z = matrix.Multiply(x);

            // Check that the solution converged
            Assert.IsTrue(monitor.Status == IterationStatus.Converged, "#04");

            // Now compare the vectors
            for (var i = 0; i < y.Count; i++)
            {
                Assert.GreaterOrEqual(ConvergenceBoundary, (y[i] - z[i]).Magnitude, "#05-" + i);
            }
        }

23. Example

Project: mathnet-numerics
Source File: BiCgStabTest.cs
View license
[Test]
        public void SolveUnitMatrixAndBackMultiply()
        {
            // Create the identity matrix
            var matrix = SparseMatrix.CreateIdentity(100);

            // Create the y vector
            var y = DenseVector.Create(matrix.RowCount, Complex32.One);

            // Create an iteration monitor which will keep track of iterative convergence
            var monitor = new Iterator<Complex32>(
                new IterationCountStopCriterion<Complex32>(MaximumIterations),
                new ResidualStopCriterion<Complex32>(ConvergenceBoundary),
                new DivergenceStopCriterion<Complex32>(),
                new FailureStopCriterion<Complex32>());

            var solver = new BiCgStab();

            // Solve equation Ax = y
            var x = matrix.SolveIterative(y, solver, monitor);

            // Now compare the results
            Assert.IsNotNull(x, "#02");
            Assert.AreEqual(y.Count, x.Count, "#03");

            // Back multiply the vector
            var z = matrix.Multiply(x);

            // Check that the solution converged
            Assert.IsTrue(monitor.Status == IterationStatus.Converged, "#04");

            // Now compare the vectors
            for (var i = 0; i < y.Count; i++)
            {
                Assert.GreaterOrEqual(ConvergenceBoundary, (y[i] - z[i]).Magnitude, "#05-" + i);
            }
        }

24. Example

Project: mathnet-numerics
Source File: GpBiCgTest.cs
View license
[Test]
        public void SolveUnitMatrixAndBackMultiply()
        {
            // Create the identity matrix
            var matrix = SparseMatrix.CreateIdentity(100);

            // Create the y vector
            var y = Vector<Complex32>.Build.Dense(matrix.RowCount, 1);

            // Create an iteration monitor which will keep track of iterative convergence
            var monitor = new Iterator<Complex32>(
                new IterationCountStopCriterion<Complex32>(MaximumIterations),
                new ResidualStopCriterion<Complex32>(ConvergenceBoundary),
                new DivergenceStopCriterion<Complex32>(),
                new FailureStopCriterion<Complex32>());

            var solver = new GpBiCg();

            // Solve equation Ax = y
            var x = matrix.SolveIterative(y, solver, monitor);

            // Now compare the results
            Assert.IsNotNull(x, "#02");
            Assert.AreEqual(y.Count, x.Count, "#03");

            // Back multiply the vector
            var z = matrix.Multiply(x);

            // Check that the solution converged
            Assert.IsTrue(monitor.Status == IterationStatus.Converged, "#04");

            // Now compare the vectors
            for (var i = 0; i < y.Count; i++)
            {
                Assert.GreaterOrEqual(ConvergenceBoundary, (y[i] - z[i]).Magnitude, "#05-" + i);
            }
        }

25. Example

Project: mathnet-numerics
Source File: GpBiCgTest.cs
View license
[Test]
        public void SolveUnitMatrixAndBackMultiply()
        {
            // Create the identity matrix
            var matrix = SparseMatrix.CreateIdentity(100);

            // Create the y vector
            var y = Vector<float>.Build.Dense(matrix.RowCount, 1);

            // Create an iteration monitor which will keep track of iterative convergence
            var monitor = new Iterator<float>(
                new IterationCountStopCriterion<float>(MaximumIterations),
                new ResidualStopCriterion<float>(ConvergenceBoundary),
                new DivergenceStopCriterion<float>(),
                new FailureStopCriterion<float>());

            var solver = new GpBiCg();

            // Solve equation Ax = y
            var x = matrix.SolveIterative(y, solver, monitor);

            // Now compare the results
            Assert.IsNotNull(x, "#02");
            Assert.AreEqual(y.Count, x.Count, "#03");

            // Back multiply the vector
            var z = matrix.Multiply(x);

            // Check that the solution converged
            Assert.IsTrue(monitor.Status == IterationStatus.Converged, "#04");

            // Now compare the vectors
            for (var i = 0; i < y.Count; i++)
            {
                Assert.GreaterOrEqual(ConvergenceBoundary, Math.Abs(y[i] - z[i]), "#05-" + i);
            }
        }

26. Example

Project: mathnet-numerics
Source File: MlkBiCgStabTest.cs
View license
[Test]
        public void SolveUnitMatrixAndBackMultiply()
        {
            // Create the identity matrix
            var matrix = SparseMatrix.CreateIdentity(100);

            // Create the y vector
            var y = Vector<float>.Build.Dense(matrix.RowCount, 1);

            // Create an iteration monitor which will keep track of iterative convergence
            var monitor = new Iterator<float>(
                new IterationCountStopCriterion<float>(MaximumIterations),
                new ResidualStopCriterion<float>(ConvergenceBoundary),
                new DivergenceStopCriterion<float>(),
                new FailureStopCriterion<float>());

            var solver = new MlkBiCgStab();

            // Solve equation Ax = y
            var x = matrix.SolveIterative(y, solver, monitor);

            // Now compare the results
            Assert.IsNotNull(x, "#02");
            Assert.AreEqual(y.Count, x.Count, "#03");

            // Back multiply the vector
            var z = matrix.Multiply(x);

            // Check that the solution converged
            Assert.IsTrue(monitor.Status == IterationStatus.Converged, "#04");

            // Now compare the vectors
            for (var i = 0; i < y.Count; i++)
            {
                Assert.GreaterOrEqual(ConvergenceBoundary, Math.Abs(y[i] - z[i]), "#05-" + i);
            }
        }

27. Example

Project: mathnet-numerics
Source File: GpBiCgTest.cs
View license
[Test]
        public void SolveScaledUnitMatrixAndBackMultiply()
        {
            // Create th/n ..... /n //View Source file for more details /n }

28. Example

Project: mathnet-numerics
Source File: BiCgStabTest.cs
View license
[Test]
        public void SolveScaledUnitMatrixAndBackMultiply()
        {
            // Create th/n ..... /n //View Source file for more details /n }

29. Example

Project: mathnet-numerics
Source File: MlkBiCgStabTest.cs
View license
[Test]
        public void SolveScaledUnitMatrixAndBackMultiply()
        {
            // Create th/n ..... /n //View Source file for more details /n }

30. Example

Project: mathnet-numerics
Source File: BiCgStabTest.cs
View license
[Test]
        public void SolveUnitMatrixAndBackMultiply()
        {
            // Create the identity matrix
            var matrix = SparseMatrix.CreateIdentity(100);

            // Create the y vector
            var y = Vector<float>.Build.Dense(matrix.RowCount, 1);

            // Create an iteration monitor which will keep track of iterative convergence
            var monitor = new Iterator<float>(
                new IterationCountStopCriterion<float>(MaximumIterations),
                new ResidualStopCriterion<float>(ConvergenceBoundary),
                new DivergenceStopCriterion<float>(),
                new FailureStopCriterion<float>());

            var solver = new BiCgStab();

            // Solve equation Ax = y
            var x = matrix.SolveIterative(y, solver, monitor);

            // Now compare the results
            Assert.IsNotNull(x, "#02");
            Assert.AreEqual(y.Count, x.Count, "#03");

            // Back multiply the vector
            var z = matrix.Multiply(x);

            // Check that the solution converged
            Assert.IsTrue(monitor.Status == IterationStatus.Converged, "#04");

            // Now compare the vectors
            for (var i = 0; i < y.Count; i++)
            {
                Assert.GreaterOrEqual(ConvergenceBoundary, Math.Abs(y[i] - z[i]), "#05-" + i);
            }
        }

31. Example

Project: mathnet-numerics
Source File: MlkBiCgStabTest.cs
View license
[Test]
        public void SolveScaledUnitMatrixAndBackMultiply()
        {
            // Create th/n ..... /n //View Source file for more details /n }

32. Example

Project: mathnet-numerics
Source File: GpBiCgTest.cs
View license
[Test]
        public void SolveScaledUnitMatrixAndBackMultiply()
        {
            // Create th/n ..... /n //View Source file for more details /n }

33. Example

Project: mathnet-numerics
Source File: BiCgStabTest.cs
View license
[Test]
        public void SolveScaledUnitMatrixAndBackMultiply()
        {
            // Create th/n ..... /n //View Source file for more details /n }