NUnit.Framework.Assert.LessOrEqual(System.IComparable, System.IComparable, string)

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

13 Examples 7

1. Example

View license
public static IComparable ShouldBeLessOrEqualThan(this IComparable arg1, IComparable arg2, string message = "")
    {
        Assert.LessOrEqual(arg1, arg2, message);
        return arg2;
    }

2. Example

Project: FieldWorks
Source File: FwFontTabTests.cs
View license
[Test]
		public void FillFontNames_IsAlphabeticallySorted()
		{
			const int firstActualFontNameInListLocation = 4;
			m_fontTab.FillFontNames(true);
			ComboBox.ObjectCollection fontNames = m_fontTab.FontNamesComboBox.Items;
			for (int i = firstActualFontNameInListLocation; i + 1 < fontNames.Count; i++)
			{
				// Check that each font in the list is alphabetically before the next font in the list
				Assert.LessOrEqual(fontNames[i] as string, fontNames[i+1] as string, "Font names not alphabetically sorted.");
			}
		}

3. Example

Project: FieldWorks
Source File: FwFontDialogTests.cs
View license
[Test]
		public void FillFontList_IsAlphabeticallySorted()
		{
			const int firstFontInListLocation = 3;
			m_dialog.FillFontList();
			ListBox.ObjectCollection fontNames = m_dialog.FontNamesListBox.Items;
			for (int i = firstFontInListLocation; i + 1 < fontNames.Count; i++)
			{
				// Check that each font in the list is alphabetically before the next font in the list
				Assert.LessOrEqual(fontNames[i] as string, fontNames[i+1] as string, "Font names not alphabetically sorted.");
			}
		}

4. Example

View license
[Test]
		public void FontsAreAlphabeticallySorted()
		{
			ComboBox.ObjectCollection fontNamesNormal = m_fontsControl.DefaultFontComboBox.Items;

			for (int i = 0; i + 1 < fontNamesNormal.Count; i++)
			{
				// Check that each font in the list is alphabetically before the next font in the list
				Assert.LessOrEqual(fontNamesNormal[i] as string, fontNamesNormal[i+1] as string, "Font names not alphabetically sorted.");
			}
		}

5. Example

Project: riak-dotnet-client
Source File: Extensions.cs
View license
public static void ShouldBeLessThan(this long? actual, long? expected, string message = null)
        {
            Assert.LessOrEqual(actual, expected, message);
        }

6. Example

Project: ContinuousTests
Source File: LessEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.LessOrEqual( 5, 8L, "int to long");
			Assert.LessO/n ..... /n //View Source file for more details /n }

7. Example

Project: ContinuousTests
Source File: LessEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.LessOrEqual( 5, 8L, "int to long");
			Assert.LessO/n ..... /n //View Source file for more details /n }

8. Example

Project: ContinuousTests
Source File: LessEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.LessOrEqual( 5, 8L, "int to long");
			Assert.LessO/n ..... /n //View Source file for more details /n }

9. Example

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

10. Example

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

11. Example

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

12. Example

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

13. Example

Project: NsqSharp
Source File: BusRecoveryTest.cs
View license
[Test]
        public void TestRecoveryAfterErrProtocol()
        {
            string topicName = s/n ..... /n //View Source file for more details /n }