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

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

6 Examples 7

1. Example

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

2. Example

Project: Synthesis
Source File: StandardTemplateTests.cs
View license
[Test]
		public void ContentSearch_FindsItem_ByCustomSearchFieldIndexer()
		{
			using (var context = CreateTestSearchContext())
			{
				var query = context.GetSynthesisQueryable<IStandardTemplateItem>()
					.Where(x => x.TemplateId == TemplateIDs.Sublayout && x["placeholder"] == "content");

				Assert.GreaterOrEqual(query.Count(), 1, "Could not find a sublayout item with placeholder set to 'content'!");
			}
		}

3. Example

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

4. Example

View license
private void AssertComponentOrder(IEnumerable<Component> components, int count, ComponentExecutionOrder order, bool reverseOrder)
		{
			int actualCount = components.Count();
			Assert.AreEqual(
				count, 
				actualCount, 
				string.Format("Expected {0} Components, but got {1}", count, actualCount));

			int lastIndex = reverseOrder ? int.MaxValue : int.MinValue;
			Type lastType = null;
			foreach (TestComponent component in components)
			{
				Type type = component.GetType();
				int index = order.GetSortIndex(type);

				if (reverseOrder)
				{
					Assert.LessOrEqual(
						index, 
						lastIndex, 
						string.Format(
							"Found {0} before {1}, which is out of the expected (reversed) order.", 
							type.Name, 
							lastType != null ? lastType.Name : "null"));
				}
				else
				{
					Assert.GreaterOrEqual(
						index, 
						lastIndex, 
						string.Format(
							"Found {0} after {1}, which is out of order.", 
							type.Name, 
							lastType != null ? lastType.Name : "null"));
				}

				lastIndex = index;
				lastType = type;
			}
		}

5. Example

Project: ATF
Source File: TimelineEditorTests.cs
View license
public void ModifyMasterDocumentExternally()
        {
            string scriptPath = Path.Combine(/n ..... /n //View Source file for more details /n }

6. Example

Project: ATF
Source File: TimelineEditorTests.cs
View license
[Test]
        public void ModifyChildDocumentExternally()
        {
            string scriptPath =/n ..... /n //View Source file for more details /n }