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

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

27 Examples 7

1. Example

Project: nunit
Source File: CombinatorialTests.cs
View license
[Test, Sequential]
        public void RandomArgsAreIndependent(
            [Random(1)] double x,
            [Random(1)] double y)
        {
            Assert.AreNotEqual(x, y);
        }

2. Example

Project: AutoTest.Net
Source File: CombinatorialTests.cs
View license
[Test, Sequential]
        public void RandomArgsAreIndependent(
            [Random(1)] double x,
            [Random(1)] double y)
        {
            Assert.AreNotEqual(x, y);
        }

3. Example

Project: AutoTest.Net
Source File: CombinatorialTests.cs
View license
[Test, Sequential]
        public void RandomArgsAreIndependent(
            [Random(1)] double x,
            [Random(1)] double y)
        {
            Assert.AreNotEqual(x, y);
        }

4. Example

Project: AutoTest.Net
Source File: CombinatorialTests.cs
View license
[Test, Sequential]
        public void RandomArgsAreIndependent(
            [Random(1)] double x,
            [Random(1)] double y)
        {
            Assert.AreNotEqual(x, y);
        }

5. Example

View license
[Test, Sequential]
        public void RandomArgsAreIndependent(
            [Random(1)] double x,
            [Random(1)] double y)
        {
            Assert.AreNotEqual(x, y);
        }

6. Example

Project: nunitlite
Source File: CombinatorialTests.cs
View license
[Test, Sequential]
        public void RandomArgsAreIndependent(
            [Random(1)] double x,
            [Random(1)] double y)
        {
            Assert.AreNotEqual(x, y);
        }

7. Example

View license
[Test, Sequential]
        public void RandomArgsAreIndependent(
            [Random(1)] double x,
            [Random(1)] double y)
        {
            Assert.AreNotEqual(x, y);
        }

8. Example

View license
[Test, Sequential]
        public void RandomArgsAreIndependent(
            [Random(1)] double x,
            [Random(1)] double y)
        {
            Assert.AreNotEqual(x, y);
        }

9. Example

View license
[Test]
        public void MatrixFrom1DArrayIsCopy()
        {
            // Sparse Matrix copies values from double[], but no remember reference.
            var data = new double[] {1, 1, 1, 1, 1, 1, 2, 2, 2};
            var matrix = Matrix<double>.Build.SparseOfColumnMajor(3, 3, data);
            matrix[0, 0] = 10.0;
            Assert.AreNotEqual(10.0, data[0]);
        }

10. Example

Project: finansu
Source File: Web.cs
View license
[Test]
        public void CanRetrieveQuote()
        {
            // Hopefully I can reduce the hideousness of this at some point
            Assert.AreNotEqual(double.Parse(FinAnSu.Web.Quote("WFC", "b", "p", false, 15, false)[0, 0].ToString()), 0);
            Assert.AreNotEqual(double.Parse(FinAnSu.Web.Quote("US0003M", "b", "p", false, 15, false)[0, 0].ToString()), 0);
        }

11. Example

Project: finansu
Source File: Web.cs
View license
[Test]
        public void CanRetrieveForeignQuote()
        {
            Assert.AreNotEqual(double.Parse(FinAnSu.Web.Quote("7267:JP", "b", "p", false, 15, false)[0, 0].ToString()), 0);
        }

12. Example

Project: mathnet-numerics
Source File: PrecisionTest.cs
View license
[Test]
        public void CoerceZeroNumbersBetween()
        {
            Assert.AreEqual(0.0, (5 * double.Epsilon).CoerceZero(5));
            Assert.AreEqual(0.0, (-5 * double.Epsilon).CoerceZero(5));

            Assert.AreNotEqual(0.0, (5 * double.Epsilon).CoerceZero(4));
            Assert.AreNotEqual(0.0, (-5 * double.Epsilon).CoerceZero(4));
        }

13. Example

Project: mathnet-numerics
Source File: PrecisionTest.cs
View license
[Test]
        public void CoerceZeroRelativeTolerance()
        {
            Assert.AreEqual(0.0, 1e-6.CoerceZero(1e-5));
            Assert.AreEqual(0.0, (-1e-6).CoerceZero(1e-5));
            Assert.AreEqual(0.0, 1e+4.CoerceZero(1e+5));
            Assert.AreEqual(0.0, (-1e+4).CoerceZero(1e+5));

            Assert.AreNotEqual(0.0, 1e-4.CoerceZero(1e-5));
            Assert.AreNotEqual(0.0, 1e-5.CoerceZero(1e-5));
            Assert.AreNotEqual(0.0, (-1e-4).CoerceZero(1e-5));
            Assert.AreNotEqual(0.0, (-1e-5).CoerceZero(1e-5));
            Assert.AreNotEqual(0.0, 1e+6.CoerceZero(1e+5));
            Assert.AreNotEqual(0.0, 1e+5.CoerceZero(1e+5));
            Assert.AreNotEqual(0.0, (-1e+6).CoerceZero(1e+5));
            Assert.AreNotEqual(0.0, (-1e+5).CoerceZero(1e+5));
        }

14. Example

Project: GribApi.NET
Source File: Files.cs
View license
[Test, Timeout(2000)]
		public void TestOpenComplex()
		{
			using (GribFile file = new GribFile(Settings.COMPLEX_GRID))
			{
				Assert.IsTrue(file.MessageCount > 0);
				foreach (var msg in file) {
					try {
						Assert.IsTrue(msg["packingType"].AsString().ToLower().Contains("complex"));
						Assert.IsTrue(msg.ValuesCount > 0);
						double[] vals;
						msg.Values(out vals);
						Assert.IsTrue(vals.Any());
						foreach (var v in vals) {
							Assert.AreNotEqual(Double.NaN, v);
						}
					} catch (GribApiException e) {
						Console.WriteLine(e.Message);
						Console.WriteLine(msg.ShortName);
						Console.WriteLine(msg.ToString());
						Assert.IsTrue(false);
					}
				}
			}
		}

15. Example

View license
[Test]
        public void StretchImagefitSize()
        {
            Document doc = DocumentHelper.CreateTemplateDocumentWithDrawObjects("<<image [src.Stream] -fitSize>>", ShapeType.TextBox);

            ImageDataSource imageStream = new ImageDataSource(new FileStream(this._image, FileMode.Open, FileAccess.Read));

            BuildReport(doc, imageStream, "src", ReportBuildOptions.None);

            MemoryStream dstStream = new MemoryStream();
            doc.Save(dstStream, SaveFormat.Docx);

            doc = new Document(dstStream);

            NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);

            foreach (Shape shape in shapes)
            {
                // Assert that the image is really insert in textbox 
                Assert.IsTrue(shape.ImageData.HasImage);

                //Assert that height is changed and width is changed
                Assert.AreNotEqual(346.35, shape.Height);
                Assert.AreNotEqual(431.5, shape.Width);
            }

            dstStream.Dispose();
        }

16. Example

View license
[Test]
        public void StretchImagefitHeight()
        {
            Document doc = DocumentHelper.CreateTemplateDocumentWithDrawObjects("<<image [src.Stream] -fitHeight>>", ShapeType.TextBox);

            ImageDataSource imageStream = new ImageDataSource(new FileStream(this._image, FileMode.Open, FileAccess.Read));

            BuildReport(doc, imageStream, "src", ReportBuildOptions.None);

            MemoryStream dstStream = new MemoryStream();
            doc.Save(dstStream, SaveFormat.Docx);

            doc = new Document(dstStream);

            NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);

            foreach (Shape shape in shapes)
            {
                // Assert that the image is really insert in textbox 
                Assert.IsTrue(shape.ImageData.HasImage);

                //Assert that width is keeped and height is changed
                Assert.AreNotEqual(346.35, shape.Height);
                Assert.AreEqual(431.5, shape.Width);
            }

            dstStream.Dispose();
        }

17. Example

Project: ContinuousTests
Source File: NotEqualFixture.cs
View license
[Test]
        public void NotEqualSameTypes()
        {
            byte b1 = 35;
            sbyte/n ..... /n //View Source file for more details /n }

18. Example

Project: ContinuousTests
Source File: NotEqualFixture.cs
View license
[Test]
        public void NotEqualSameTypes()
        {
            byte b1 = 35;
            sbyte/n ..... /n //View Source file for more details /n }

19. Example

Project: AutoTest.Net
Source File: NotEqualFixture.cs
View license
[Test]
        public void NotEqualSameTypes()
        {
            byte b1 = 35;
            sbyte/n ..... /n //View Source file for more details /n }

20. Example

Project: AutoTest.Net
Source File: NotEqualFixture.cs
View license
[Test]
        public void NotEqualSameTypes()
        {
            byte b1 = 35;
            sbyte/n ..... /n //View Source file for more details /n }

21. Example

Project: AutoTest.Net
Source File: NotEqualFixture.cs
View license
[Test]
        public void NotEqualSameTypes()
        {
            byte b1 = 35;
            sbyte/n ..... /n //View Source file for more details /n }

22. Example

View license
[Test]
        public void StretchImagefitWidth()
        {
            Document doc = DocumentHelper.CreateTemplateDocumentWithDrawObjects("<<image [src.Stream] -fitWidth>>", ShapeType.TextBox);

            ImageDataSource imageStream = new ImageDataSource(new FileStream(this._image, FileMode.Open, FileAccess.Read));

            BuildReport(doc, imageStream, "src", ReportBuildOptions.None);

            MemoryStream dstStream = new MemoryStream();
            doc.Save(dstStream, SaveFormat.Docx);

            doc = new Document(dstStream);

            NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);

            foreach (Shape shape in shapes)
            {
                // Assert that the image is really insert in textbox and 
                Assert.IsTrue(shape.ImageData.HasImage);

                //Assert that height is keeped and width is changed
                Assert.AreNotEqual(431.5, shape.Width);
                Assert.AreEqual(346.35, shape.Height);
            }

            dstStream.Dispose();
        }

23. Example

Project: nunit
Source File: NotEqualFixture.cs
View license
[Test]
        public void NotEqualSameTypes()
        {
            byte b1 = 35;
            sbyte/n ..... /n //View Source file for more details /n }

24. Example

Project: nunitlite
Source File: NotEqualFixture.cs
View license
[Test]
        public void NotEqualSameTypes()
        {
            byte b1 = 35;
            sbyte/n ..... /n //View Source file for more details /n }

25. Example

Project: ContinuousTests
Source File: NotEqualFixture.cs
View license
[Test]
        public void NotEqualSameTypes()
        {
            byte b1 = 35;
            sbyte/n ..... /n //View Source file for more details /n }

26. Example

View license
[Test]
        public void BuildFormattedTable()
        {
            //ExStart
            //ExFor/n ..... /n //View Source file for more details /n }

27. Example

Project: GribApi.NET
Source File: Write.cs
View license
public void TestCompression (string grid)
        {
            if (File.Exists(Settings.OUT_GRIB))
/n ..... /n //View Source file for more details /n }