NUnit.Framework.Assert.Less(int, int, string)

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

36 Examples 7

1. Example

Project: riak-dotnet-client
Source File: Extensions.cs
View license
public static void IsAtLeast(this int val, int min, string message = null)
        {
            Assert.Less(min - 1, val, message);
        }

2. Example

Project: FieldWorks
Source File: DiscourseTestHelper.cs
View license
internal IConstChartTag MakeMissingMarker(IConstChartRow row, int icol)
		{
			Assert.Less(icol, m_allColumns.Count, "Invalid column index");
			var cct = m_ccTagFact.CreateMissingMarker(row, row.CellsOS.Count, m_allColumns[icol]);
			return cct;
		}

3. Example

Project: FieldWorks
Source File: DiscourseTestHelper.cs
View license
internal IConstChartWordGroup MakeWordGroup(IConstChartRow row, int icol,
			AnalysisOccurrence begPoint, AnalysisOccurrence endPoint)
		{
			Assert.Less(icol, m_allColumns.Count, "Invalid column index");
			var ccwg = m_wordGrpFact.Create(row, row.CellsOS.Count, m_allColumns[icol], begPoint, endPoint);
			return ccwg;
		}

4. Example

Project: n2cms
Source File: ItemComparerTests.cs
View license
[Test]
        public void DefaultComparer()
        {
            ItemComparer comparer = new ItemComparer();
            int comparisonResult = comparer.Compare(item1, item2);
            Assert.Less(0, comparisonResult, "The first item should have been greater than the second due to sort order.");
        }

5. Example

Project: FieldWorks
Source File: DiscourseTestHelper.cs
View license
internal IConstChartTag MakeChartMarker(IConstChartRow row, int icol, ICmPossibility marker)
		{
			Assert.Less(icol, m_allColumns.Count, "Invalid column index");
			Assert.IsNotNull(marker, "Invalid marker.");
			var cct = m_ccTagFact.Create(row, row.CellsOS.Count, m_allColumns[icol], marker);
			return cct;
		}

6. Example

Project: FieldWorks
Source File: DiscourseTestHelper.cs
View license
internal IConstChartClauseMarker MakeDependentClauseMarker(IConstChartRow row, int icol,
			IConstChartRow[] depClauses, ClauseTypes depType)
		{
			Assert.IsTrue(depType == ClauseTypes.Dependent ||
				depType == ClauseTypes.Song ||
				depType == ClauseTypes.Speech, "Invalid dependent type.");

			// Set ClauseType and begin/end group booleans in destination clauses
			foreach (var rowDst in depClauses)
			{
				rowDst.ClauseType = depType;
				if (rowDst == depClauses[0])
					rowDst.StartDependentClauseGroup = true;
				if (rowDst == depClauses[depClauses.Length - 1])
					rowDst.EndDependentClauseGroup = true;
			}

			// Create marker
			Assert.Less(icol, m_allColumns.Count, "Invalid column index");
			return m_clauseMrkrFact.Create(row, row.CellsOS.Count, m_allColumns[icol], depClauses);
		}

7. Example

Project: FieldWorks
Source File: DiscourseTestHelper.cs
View license
internal IConstChartMovedTextMarker MakeMovedTextMarker(IConstChartRow row, int icol,
			IConstChartWordGroup target, bool fPreposed)
		{
			Assert.Less(icol, m_allColumns.Count, "Invalid column index");
			Assert.IsNotNull(target, "Can't make a MovedTextMarker with no target WordGroup");
			var ccmtm = m_mtmFact.Create(row, row.CellsOS.Count, m_allColumns[icol], fPreposed, target);
			return ccmtm;
		}

8. Example

View license
[Test]
        public void ParametersTest_PageOrientation_Landscape()
        {
            _pdfDevice.Job.Profile.OutputFormat = OutputFormat.Pdf;
            _pdfDevice.Job.Profile.PdfSettings.PageOrientation = PageOrientation.Landscape;
            _parameterStrings = new Collection<string>(_pdfDevice.GetGhostScriptParameters(_ghostscriptVersion));
            Assert.Contains("-dAutoRotatePages=/None", _parameterStrings, "Missing parameter.");

            Assert.Contains("-c", _parameterStrings, "Missing parameter.");
            Assert.Contains("<</Orientation 3>> setpagedevice", _parameterStrings, "Missing parameter.");
            var cIndex = _parameterStrings.IndexOf("-c");
            Assert.Less(cIndex, _parameterStrings.IndexOf("<</Orientation 3>> setpagedevice"), "Destiller parameter before -c");
        }

9. Example

View license
[Test]
        public void ParametersTest_PageOrientation_Portrait()
        {
            _pdfDevice.Job.Profile.OutputFormat = OutputFormat.PdfX;
            _pdfDevice.Job.Profile.PdfSettings.PageOrientation = PageOrientation.Portrait;

            _parameterStrings = new Collection<string>(_pdfDevice.GetGhostScriptParameters(_ghostscriptVersion));

            Assert.Contains("-dAutoRotatePages=/None", _parameterStrings, "Missing parameter.");

            Assert.Contains("-c", _parameterStrings, "Missing parameter.");
            Assert.Contains("<</Orientation 0>> setpagedevice", _parameterStrings, "Missing parameter.");
            var cIndex = _parameterStrings.IndexOf("-c");
            Assert.Less(cIndex, _parameterStrings.IndexOf("<</Orientation 0>> setpagedevice"), "Destiller parameter before -c");
        }

10. Example

View license
[Test]
        public void ParametersTest_GrayAndColorImagesCompressionJpegMinimum_Resampling1200Dpi/n ..... /n //View Source file for more details /n }

11. Example

View license
[Test]
        public void ParametersTest_GrayAndColorImagesCompressionJpegMedium_Resampling4Dpi()
 /n ..... /n //View Source file for more details /n }

12. Example

View license
[Test]
        public void ParametersTest_GrayAndColorImagesCompressionJpegMaximum_ResamplingDisable/n ..... /n //View Source file for more details /n }

13. Example

View license
[Test]
        public void ParametersTest_GrayAndColorImagesCompressionJpegHigh_Resampling3Dpi_Raise/n ..... /n //View Source file for more details /n }

14. Example

View license
[Test]
        public void ParametersTest_GrayAndColorImagesCompressionJpegLow_Resampling150Dpi()
  /n ..... /n //View Source file for more details /n }

15. Example

Project: xenadmin
Source File: TokenizerTest.cs
View license
[Test]
        public void Run()
        {
            int j = 0;
            foreach (string token in Parser.Tokenize(sxp))
            {
                Assert.Less(j, tokens.Length, "Too many tokens found");
                Assert.AreEqual(token, tokens[j++], "Wrong token found");
            }
            Assert.AreEqual(tokens.Length, j, "Not enough tokens found");
        }

16. Example

Project: PDFCreator
Source File: GeneralTests.cs
View license
[Test]
        public void ParametersTest_CoverPage()
        {
            _outputDevice.Job.Profile.CoverPage.Enabled = true;
            const string coverFile = "CoverFile.pdf";
            _outputDevice.Job.Profile.CoverPage.File = coverFile;

            _parameterStrings = new Collection<string>(_outputDevice.GetGhostScriptParameters(_ghostscriptVersion));

            Assert.Contains(coverFile, _parameterStrings, "Missing parameter.");
            var fIndex = _parameterStrings.IndexOf("-f");
            Assert.Less(fIndex, _parameterStrings.IndexOf(coverFile), "CoverFile not behind -f parameter.");

            _outputDevice.Job.Profile.CoverPage.Enabled = false;
            _parameterStrings = new Collection<string>(_outputDevice.GetGhostScriptParameters(_ghostscriptVersion));
            Assert.AreEqual(-1, _parameterStrings.IndexOf(coverFile), "Falsely set CoverFile.");
        }

17. Example

Project: PDFCreator
Source File: GeneralTests.cs
View license
[Test]
        public void ParametersTest_AttachmentPage()
        {
            _outputDevice.Job.Profile.AttachmentPage.Enabled = true;
            const string attachmentFile = "AttachmentFile.pdf";
            _outputDevice.Job.Profile.AttachmentPage.File = attachmentFile;

            _parameterStrings = new Collection<string>(_outputDevice.GetGhostScriptParameters(_ghostscriptVersion));

            Assert.Contains(attachmentFile, _parameterStrings, "Missing parameter.");
            var fIndex = _parameterStrings.IndexOf("-f");
            Assert.Less(fIndex, _parameterStrings.IndexOf(attachmentFile), "AttachmentFile not behind -f parameter.");

            _outputDevice.Job.Profile.AttachmentPage.Enabled = false;
            _parameterStrings = new Collection<string>(_outputDevice.GetGhostScriptParameters(_ghostscriptVersion));
            Assert.AreEqual(-1, _parameterStrings.IndexOf(attachmentFile), "Falsely set AttachmentFile.");
        }

18. Example

View license
[Test]
        public void ParametersTest_CoverPage()
        {
            _pdfDevice.Job.Profile.OutputFormat = OutputFormat.Pdf;
            _pdfDevice.Job.Profile.CoverPage.Enabled = true;
            const string coverFile = "CoverFile.pdf";
            _pdfDevice.Job.Profile.CoverPage.File = coverFile;

            _parameterStrings = new Collection<string>(_pdfDevice.GetGhostScriptParameters(_ghostscriptVersion));

            Assert.Contains(coverFile, _parameterStrings, "Missing parameter.");
            var fIndex = _parameterStrings.IndexOf("-f");
            Assert.Less(fIndex, _parameterStrings.IndexOf(coverFile), "CoverFile not behind -f parameter.");

            _pdfDevice.Job.Profile.CoverPage.Enabled = false;
            _parameterStrings = new Collection<string>(_pdfDevice.GetGhostScriptParameters(_ghostscriptVersion));
            Assert.AreEqual(-1, _parameterStrings.IndexOf(coverFile), "Falsely set CoverFile.");
        }

19. Example

View license
[Test]
        public void ParametersTest_AttachmentPage()
        {
            _pdfDevice.Job.Profile.OutputFormat = OutputFormat.Pdf;
            _pdfDevice.Job.Profile.AttachmentPage.Enabled = true;
            const string attachmentFile = "AttachmentFile.pdf";
            _pdfDevice.Job.Profile.AttachmentPage.File = attachmentFile;

            _parameterStrings = new Collection<string>(_pdfDevice.GetGhostScriptParameters(_ghostscriptVersion));

            Assert.Contains(attachmentFile, _parameterStrings, "Missing parameter.");
            var fIndex = _parameterStrings.IndexOf("-f");
            Assert.Less(fIndex, _parameterStrings.IndexOf(attachmentFile), "AttachmentFile not behind -f parameter.");

            _pdfDevice.Job.Profile.AttachmentPage.Enabled = false;
            _parameterStrings = new Collection<string>(_pdfDevice.GetGhostScriptParameters(_ghostscriptVersion));
            Assert.AreEqual(-1, _parameterStrings.IndexOf(attachmentFile), "Falsely set AttachmentFile.");
        }

20. Example

View license
[Test]
        public void ParametersTest_GrayAndColorImagesCompressionJpegManual_Resampling2401Dpi_/n ..... /n //View Source file for more details /n }

21. Example

Project: NodaTime
Source File: TestHelper.cs
View license
public static void TestCompareToStruct<T>(T value, T equalValue, T greaterValue) where T : struct, IComparable<T>
        {
            ValidateInput(value, equalValue, greaterValue, "greaterValue");
            Assert.AreEqual(value.CompareTo(value), 0, "value.CompareTo(value)");
            Assert.AreEqual(value.CompareTo(equalValue), 0, "value.CompareTo(equalValue)");
            Assert.AreEqual(equalValue.CompareTo(value), 0, "equalValue.CompareTo(value)");
            Assert.Less(value.CompareTo(greaterValue), 0, "value.CompareTo(greaterValue)");
            Assert.Greater(greaterValue.CompareTo(value), 0, "greaterValue.CompareTo(value)");
        }

22. Example

Project: NodaTime
Source File: TestHelper.cs
View license
public static void TestCompareToClass<T>(T value, T equalValue, T greaterValue) where T : class, IComparable<T>
        {
            ValidateInput(value, equalValue, greaterValue, "greaterValue");
            Assert.Greater(value.CompareTo(null), 0, "value.CompareTo<T>(null)");
            Assert.AreEqual(value.CompareTo(value), 0, "value.CompareTo<T>(value)");
            Assert.AreEqual(value.CompareTo(equalValue), 0, "value.CompareTo<T>(equalValue)");
            Assert.AreEqual(equalValue.CompareTo(value), 0, "equalValue.CompareTo<T>(value)");
            Assert.Less(value.CompareTo(greaterValue), 0, "value.CompareTo<T>(greaterValue)");
            Assert.Greater(greaterValue.CompareTo(value), 0, "greaterValue.CompareTo<T>(value)");
        }

23. Example

View license
[Test]
        public void CheckDeviceSpecificDefaultParameters()
        {
            _parameterStrings = new Collection<string>(_printingDevice.GetGhostScriptParameters(_ghostscriptVersion));

            Assert.Contains("-c", _parameterStrings, "Missing device default parameter.");
            var markString = GetMarkString(_parameterStrings);

            var cIndex = _parameterStrings.IndexOf("-c");
            var markIndex = _parameterStrings.IndexOf(markString);
            Assert.Less(cIndex, markIndex, "-c must be set in front of the mark parameters.");

            Assert.IsTrue(markString.Contains("mark /NoCancel true /BitsPerPixel 24 "), "Missing mark parameter: \"mark /NoCancel true /BitsPerPixel 24 \"");

            const string markParameter = "/UserSettings 1 dict dup /DocumentName (" + TestFileDummie + ") put (mswinpr2) finddevice putdeviceprops setdevice";
            Assert.IsTrue(markString.Contains(markParameter), "Missing mark parameter: " + markParameter);
        }

24. Example

Project: NodaTime
Source File: TestHelper.cs
View license
public static void TestNonGenericCompareTo<T>(T value, T equalValue, T greaterValue) where T : IComparable
        {
            // Just type the values as plain IComparable for simplicity
            IComparable value2 = value;
            IComparable equalValue2 = equalValue;
            IComparable greaterValue2 = greaterValue;

            ValidateInput(value2, equalValue2, greaterValue2, "greaterValue");
            Assert.Greater(value2.CompareTo(null), 0, "value.CompareTo<T>(null)");
            Assert.AreEqual(value2.CompareTo(value2), 0, "value.CompareTo<T>(value)");
            Assert.AreEqual(value2.CompareTo(equalValue2), 0, "value.CompareTo<T>(equalValue)");
            Assert.AreEqual(equalValue2.CompareTo(value2), 0, "equalValue.CompareTo<T>(value)");
            Assert.Less(value2.CompareTo(greaterValue2), 0, "value.CompareTo<T>(greaterValue)");
            Assert.Greater(greaterValue2.CompareTo(value2), 0, "greaterValue.CompareTo<T>(value)");
            Assert.Throws<ArgumentException>(() => value2.CompareTo(new object()));
        }

25. Example

Project: BloomDesktop
Source File: PdfMakerTests.cs
View license
[Test]
		public void MakePdf_BookStyleIsBooklet_OutputsPdf()
		{
			var maker = new PdfMaker();
			using (var input = TempFile.WithExtension("html"))
			using (var output = new TempFile())
			{
				File.WriteAllText(input.Path, "<html><body>Hello</body></html>");
				File.Delete(output.Path);
				RunMakePdf(maker, input.Path, output.Path, "A5", false, false, false,
					PublishModel.BookletLayoutMethod.SideFold, PublishModel.BookletPortions.BookletPages);
				//we don't actually have a way of knowing it did a booklet
				Assert.IsTrue(File.Exists(output.Path), "Failed to convert trivial HTML file to PDF (BookletPages)");
				var bytes = File.ReadAllBytes(output.Path);
				Assert.Less(1000, bytes.Length, "Generated PDF file is way too small! (BookletPages)");
				Assert.IsTrue (bytes [0] == (byte)'%' && bytes [1] == (byte)'P' && bytes [2] == (byte)'D' && bytes [3] == (byte)'F',
					"Generated PDF file started with the wrong 4-byte signature (BookletPages)");
			}
		}

26. Example

Project: BloomDesktop
Source File: PdfMakerTests.cs
View license
[Test]
		public void MakePdf_BookNameIsChinese_OutputsPdf()
		{
			var maker = new PdfMaker();
			using (var input = TempFile.WithFilename("??.html"))
			using (var output = TempFile.WithFilename("??.pdf"))
			{
				RobustFile.WriteAllText(input.Path, "<html><body>??</body></html>");
				RobustFile.Delete(output.Path);
				RunMakePdf(maker, input.Path, output.Path, "A5", false, false, false,
					PublishModel.BookletLayoutMethod.SideFold, PublishModel.BookletPortions.BookletPages);
				//we don't actually have a way of knowing it did a booklet
				Assert.IsTrue(File.Exists(output.Path), "Failed to convert trivial HTML file to PDF (Chinese filenames and content)");
				var bytes = File.ReadAllBytes(output.Path);
				Assert.Less(1000, bytes.Length, "Generated PDF file is way too small! (Chinese filenames and content)");
				Assert.IsTrue (bytes [0] == (byte)'%' && bytes [1] == (byte)'P' && bytes [2] == (byte)'D' && bytes [3] == (byte)'F',
					"Generated PDF file started with the wrong 4-byte signature (Chinese filenames and content)");
			}
		}

27. Example

Project: BloomDesktop
Source File: PdfMakerTests.cs
View license
[Test]
		public void MakePdf_BookNameIsNonAscii_OutputsPdf()
		{
			var maker = new PdfMaker();
			using (var input = TempFile.WithFilename("????? ??????.html"))
			using (var output = TempFile.WithFilename("????? ??????.pdf"))
			{
				File.WriteAllText(input.Path, "<META HTTP-EQUIV=\"content-type\" CONTENT=\"text/html; charset=utf-8\"><html><body>????? ??????</body></html>");
				File.Delete(output.Path);
				RunMakePdf(maker, input.Path, output.Path, "A5", false, false, false,
					PublishModel.BookletLayoutMethod.SideFold, PublishModel.BookletPortions.BookletPages);
				//we don't actually have a way of knowing it did a booklet
				Assert.IsTrue(File.Exists(output.Path), "Failed to convert trivial HTML file to PDF (Indic script filenames and content)");
				var bytes = File.ReadAllBytes(output.Path);
				Assert.Less(1000, bytes.Length, "Generated PDF file is way too small! (Indic script filenames and content)");
				Assert.IsTrue (bytes [0] == (byte)'%' && bytes [1] == (byte)'P' && bytes [2] == (byte)'D' && bytes [3] == (byte)'F',
					"Generated PDF file started with the wrong 4-byte signature (Indic script filenames and content)");
			}
		}

28. Example

Project: BloomDesktop
Source File: PdfMakerTests.cs
View license
[Test]
		public void MakePdf_BookStyleIsNone_OutputsPdf()
		{
			var maker = new PdfMaker();
			using (var input = TempFile.WithExtension("html"))
			using (var output = new TempFile())
			{
				File.WriteAllText(input.Path, "<html><body>Hello</body></html>");
				File.Delete(output.Path);
				RunMakePdf(maker, input.Path, output.Path, "a5", false, false, false,
					PublishModel.BookletLayoutMethod.SideFold, PublishModel.BookletPortions.AllPagesNoBooklet);
				//we don't actually have a way of knowing it did a booklet
				Assert.IsTrue(File.Exists(output.Path), "Failed to convert trivial HTML file to PDF (AllPagesNoBooklet)");
				var bytes = File.ReadAllBytes(output.Path);
				Assert.Less(1000, bytes.Length, "Generated PDF file is way too small! (AllPagesNoBooklet)");
				Assert.IsTrue (bytes [0] == (byte)'%' && bytes [1] == (byte)'P' && bytes [2] == (byte)'D' && bytes [3] == (byte)'F',
					"Generated PDF file started with the wrong 4-byte signature (AllPagesNoBooklet)");
			}
		}

29. Example

View license
[Ignore("NSQD Integration Test")]
#endif
        [Test]
        public void Given_Two_Queues_In_One_/n ..... /n //View Source file for more details /n }

30. Example

Project: AutoTest.Net
Source File: LessFixture.cs
View license
[Test]
		public void Less()
		{
			// Testing all forms after seeing some bugs. CFP
			Assert.Less(i1,i2);
			Assert.Less(i1,i2,"int");
			Assert.Less(i1,i2,"{0}","int");
			Assert.Less(u1,u2,"uint");
			Assert.Less(u1,u2,"{0}","uint");
			Assert.Less(l1,l2,"long");
			Assert.Less(l1,l2,"{0}","long");
			Assert.Less(ul1,ul2,"ulong");
			Assert.Less(ul1,ul2,"{0}","ulong");
			Assert.Less(d1,d2);
			Assert.Less(d1,d2, "double");
			Assert.Less(d1,d2, "{0}", "double");
			Assert.Less(de1,de2);
			Assert.Less(de1,de2, "decimal");
			Assert.Less(de1,de2, "{0}", "decimal");
			Assert.Less(f1,f2);
			Assert.Less(f1,f2, "float");
			Assert.Less(f1,f2, "{0}", "float");
		}

31. Example

Project: AutoTest.Net
Source File: LessFixture.cs
View license
[Test]
		public void Less()
		{
			// Testing all forms after seeing some bugs. CFP
			Assert.Less(i1,i2);
			Assert.Less(i1,i2,"int");
			Assert.Less(i1,i2,"{0}","int");
			Assert.Less(u1,u2,"uint");
			Assert.Less(u1,u2,"{0}","uint");
			Assert.Less(l1,l2,"long");
			Assert.Less(l1,l2,"{0}","long");
			Assert.Less(ul1,ul2,"ulong");
			Assert.Less(ul1,ul2,"{0}","ulong");
			Assert.Less(d1,d2);
			Assert.Less(d1,d2, "double");
			Assert.Less(d1,d2, "{0}", "double");
			Assert.Less(de1,de2);
			Assert.Less(de1,de2, "decimal");
			Assert.Less(de1,de2, "{0}", "decimal");
			Assert.Less(f1,f2);
			Assert.Less(f1,f2, "float");
			Assert.Less(f1,f2, "{0}", "float");
		}

32. Example

Project: ContinuousTests
Source File: LessFixture.cs
View license
[Test]
		public void Less()
		{
			// Testing all forms after seeing some bugs. CFP
			Assert.Less(i1,i2);
			Assert.Less(i1,i2,"int");
			Assert.Less(i1,i2,"{0}","int");
			Assert.Less(u1,u2,"uint");
			Assert.Less(u1,u2,"{0}","uint");
			Assert.Less(l1,l2,"long");
			Assert.Less(l1,l2,"{0}","long");
			Assert.Less(ul1,ul2,"ulong");
			Assert.Less(ul1,ul2,"{0}","ulong");
			Assert.Less(d1,d2);
			Assert.Less(d1,d2, "double");
			Assert.Less(d1,d2, "{0}", "double");
			Assert.Less(de1,de2);
			Assert.Less(de1,de2, "decimal");
			Assert.Less(de1,de2, "{0}", "decimal");
			Assert.Less(f1,f2);
			Assert.Less(f1,f2, "float");
			Assert.Less(f1,f2, "{0}", "float");
		}

33. Example

Project: AutoTest.Net
Source File: LessFixture.cs
View license
[Test]
		public void Less()
		{
			// Testing all forms after seeing some bugs. CFP
			Assert.Less(i1,i2);
			Assert.Less(i1,i2,"int");
			Assert.Less(i1,i2,"{0}","int");
			Assert.Less(u1,u2,"uint");
			Assert.Less(u1,u2,"{0}","uint");
			Assert.Less(l1,l2,"long");
			Assert.Less(l1,l2,"{0}","long");
			Assert.Less(ul1,ul2,"ulong");
			Assert.Less(ul1,ul2,"{0}","ulong");
			Assert.Less(d1,d2);
			Assert.Less(d1,d2, "double");
			Assert.Less(d1,d2, "{0}", "double");
			Assert.Less(de1,de2);
			Assert.Less(de1,de2, "decimal");
			Assert.Less(de1,de2, "{0}", "decimal");
			Assert.Less(f1,f2);
			Assert.Less(f1,f2, "float");
			Assert.Less(f1,f2, "{0}", "float");
		}

34. Example

Project: nunit
Source File: LessFixture.cs
View license
[Test]
        public void Less()
        {
            // Testing all forms after seeing some bugs. CFP
            Assert.Less(i1,i2);
            Assert.Less(i1,i2,"int");
            Assert.Less(i1,i2,"{0}","int");
            Assert.Less(u1,u2,"uint");
            Assert.Less(u1,u2,"{0}","uint");
            Assert.Less(l1,l2,"long");
            Assert.Less(l1,l2,"{0}","long");
            Assert.Less(ul1,ul2,"ulong");
            Assert.Less(ul1,ul2,"{0}","ulong");
            Assert.Less(d1,d2);
            Assert.Less(d1,d2, "double");
            Assert.Less(d1,d2, "{0}", "double");
            Assert.Less(de1,de2);
            Assert.Less(de1,de2, "decimal");
            Assert.Less(de1,de2, "{0}", "decimal");
            Assert.Less(f1,f2);
            Assert.Less(f1,f2, "float");
            Assert.Less(f1,f2, "{0}", "float");
        }

35. Example

Project: ContinuousTests
Source File: LessFixture.cs
View license
[Test]
		public void Less()
		{
			// Testing all forms after seeing some bugs. CFP
			Assert.Less(i1,i2);
			Assert.Less(i1,i2,"int");
			Assert.Less(i1,i2,"{0}","int");
			Assert.Less(u1,u2,"uint");
			Assert.Less(u1,u2,"{0}","uint");
			Assert.Less(l1,l2,"long");
			Assert.Less(l1,l2,"{0}","long");
			Assert.Less(ul1,ul2,"ulong");
			Assert.Less(ul1,ul2,"{0}","ulong");
			Assert.Less(d1,d2);
			Assert.Less(d1,d2, "double");
			Assert.Less(d1,d2, "{0}", "double");
			Assert.Less(de1,de2);
			Assert.Less(de1,de2, "decimal");
			Assert.Less(de1,de2, "{0}", "decimal");
			Assert.Less(f1,f2);
			Assert.Less(f1,f2, "float");
			Assert.Less(f1,f2, "{0}", "float");
		}

36. Example

Project: ContinuousTests
Source File: LessFixture.cs
View license
[Test]
		public void Less()
		{
			// Testing all forms after seeing some bugs. CFP
			Assert.Less(i1,i2);
			Assert.Less(i1,i2,"int");
			Assert.Less(i1,i2,"{0}","int");
			Assert.Less(u1,u2,"uint");
			Assert.Less(u1,u2,"{0}","uint");
			Assert.Less(l1,l2,"long");
			Assert.Less(l1,l2,"{0}","long");
			Assert.Less(ul1,ul2,"ulong");
			Assert.Less(ul1,ul2,"{0}","ulong");
			Assert.Less(d1,d2);
			Assert.Less(d1,d2, "double");
			Assert.Less(d1,d2, "{0}", "double");
			Assert.Less(de1,de2);
			Assert.Less(de1,de2, "decimal");
			Assert.Less(de1,de2, "{0}", "decimal");
			Assert.Less(f1,f2);
			Assert.Less(f1,f2, "float");
			Assert.Less(f1,f2, "{0}", "float");
		}