NUnit.Framework.Assert.GreaterOrEqual(System.IComparable, System.IComparable)

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

200 Examples 7

1. Example

View license
[Test, ExpectedException(typeof(AssertionException))]
        public void NotGreaterEqualIComparable()
        {
			expectedMessage =
				"  Expected: greater than or equal to TableDirect" + Environment.NewLine +
				"  But was:  StoredProcedure" + Environment.NewLine;
			Assert.GreaterOrEqual(e2, e1);
        }

2. Example

View license
[Test, ExpectedException(typeof(AssertionException))]
        public void NotGreaterEqualIComparable()
        {
			expectedMessage =
				"  Expected: greater than or equal to TableDirect" + Environment.NewLine +
				"  But was:  StoredProcedure" + Environment.NewLine;
			Assert.GreaterOrEqual(e2, e1);
        }

3. Example

View license
[Test, ExpectedException(typeof(AssertionException))]
        public void NotGreaterEqualIComparable()
        {
			expectedMessage =
				"  Expected: greater than or equal to TableDirect" + Environment.NewLine +
				"  But was:  StoredProcedure" + Environment.NewLine;
			Assert.GreaterOrEqual(e2, e1);
        }

4. Example

Project: linq2db
Source File: Issue241Tests.cs
View license
[Test, NorthwindDataContext]
		public void Test(string context)
		{
			using (var db = new NorthwindDB(context))
			{
				var jj = from o in db.Customer select o;
				jj = jj.Where(x => x.CompanyName.Contains("t"));
				var t1g = jj.GroupBy(_ => _).ToDictionary(_ => _.Key, _ => _.ToList());

				Assert.GreaterOrEqual(t1g.Count, 1);
			}
		}

5. Example

Project: GVFS
Source File: ValueShouldExtensions.cs
View license
public static T ShouldBeAtLeast<T>(this T actualValue, T expectedValue, string message = "") where T : IComparable
        {
            Assert.GreaterOrEqual(actualValue, expectedValue, message);
            return actualValue;
        }

6. Example

View license
[Test()]
        public void CheckElementsProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetElementPropertySize(), 1);
        }

7. Example

View license
[Test()]
        public void CheckElements()
        {
            Assert.GreaterOrEqual(pageObject.GetElementSize(), 1);
        }

8. Example

View license
[Test()]
        public void CheckElementsFoundByChainedSearch()
        {
            Assert.GreaterOrEqual(pageObject.GetFoundByChainedSearchElementSize(), 1);
        }

9. Example

View license
[Test()]
        public void CheckMobileElementsProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementPropertySize(), 1);
        }

10. Example

View license
[Test()]
        public void CheckMobileElementsProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementPropertySize(), 1);
        }

11. Example

View license
[Test()]
        public void CheckElementsFoundUsingMultipleLocators()
        {
            Assert.GreaterOrEqual(pageObject.GetMultipleFindByElementSize(), 1);
        }

12. Example

View license
[Test()]
        public void CheckFoundByChainedSearchElementsProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetFoundByChainedSearchElementPropertySize(), 1);
        }

13. Example

View license
[Test()]
        public void CheckElementsFoundUsingMultipleLocatorssProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMultipleFindByElementPropertySize(), 1);
        }

14. Example

View license
[Test()]
        public void CheckElementsFoundUsingMultipleLocators()
        {
            Assert.GreaterOrEqual(pageObject.GetMultipleFindByElementSize(), 1);
        }

15. Example

View license
[Test()]
        public void CheckElementsFoundUsingMultipleLocators()
        {
            Assert.GreaterOrEqual(pageObject.GetMultipleFindByElementSize(), 1);
        }

16. Example

View license
[Test()]
        public void CheckMobileElementsProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementPropertySize(), 1);
        }

17. Example

View license
[Test()]
        public void CheckMobileElements()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementSize(), 1);
        }

18. Example

View license
[Test()]
        public void CheckMobileElements()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementSize(), 1);
        }

19. Example

View license
[Test()]
        public void CheckMobileElementsProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementPropertySize(), 1);
        }

20. Example

View license
[Test()]
        public void CheckMobileElements()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementSize(), 1);
        }

21. Example

View license
[Test()]
        public void CheckMobileElements()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementSize(), 1);
        }

22. Example

View license
[Test()]
        public void CheckElementsFoundUsingMultipleLocatorssProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMultipleFindByElementPropertySize(), 1);
        }

23. Example

View license
[Test()]
        public void CheckMobileElementsProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementPropertySize(), 1);
        }

24. Example

View license
[Test()]
        public void CheckMobileElementsProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementPropertySize(), 1);
        }

25. Example

View license
[Test()]
        public void CheckMobileElementsProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementPropertySize(), 1);
        }

26. Example

View license
[Test()]
        public void CheckMobileElements()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementSize(), 1);
        }

27. Example

View license
[Test()]
        public void CheckElementsFoundUsingMultipleLocatorssProperty()
        {
            Assert.GreaterOrEqual(pageObject.GetMultipleFindByElementPropertySize(), 1);
        }

28. Example

View license
[Test()]
        public void CheckMobileElements()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementSize(), 1);
        }

29. Example

View license
[Test()]
        public void CheckMobileElements()
        {
            Assert.GreaterOrEqual(pageObject.GetMobileElementSize(), 1);
        }

30. Example

View license
[Test]
        public void StartingGameShouldRestartTheGameToReuseGameInstance()
        {
            const int GamesToPlay = 20;

            var firstPlayer = new ValidPlayerWithMethodsCallCounting();
            var secondPlayer = new ValidPlayerWithMethodsCallCounting();
            var game = new SantaseGame(firstPlayer, secondPlayer, GameRulesProvider.Santase, new NoLogger());

            for (var i = 0; i < GamesToPlay; i++)
            {
                game.Start(i % 2 == 0 ? PlayerPosition.FirstPlayer : PlayerPosition.SecondPlayer);
            }

            Assert.GreaterOrEqual(
                firstPlayer.StartRoundCalledCount,
                4 * GamesToPlay,
                "Not started at least 4 rounds per game for the first player");
            Assert.GreaterOrEqual(
                secondPlayer.StartRoundCalledCount,
                4 * GamesToPlay,
                "Not started at least 4 rounds per game for the second player");
        }

31. Example

Project: nuodb-dotnet
Source File: LINQUnitTest.cs
View license
[Test]
        public void LINQTestINDEXOF()
        {
            var results = from player in context.HOCKEY
                          select player.NAME.IndexOf("SUM");

            foreach (var x in results)
            {
                Assert.GreaterOrEqual(x, -1);
            }
        }

32. Example

Project: pagarme-net
Source File: TransferTest.cs
View license
[Test]
        public void FindAllTransferTest()
        {
            BankAccount bank = PagarMeTestFixture.CreateTestBankAccount();
            bank.Save();
            Recipient recipient = PagarMeTestFixture.CreateRecipient(bank);
            recipient.Save();

            Transaction transaction = PagarMeTestFixture.CreateBoletoSplitRuleTransaction(recipient);
            transaction.Save();
            transaction.Status = TransactionStatus.Paid;
            transaction.Save();

            Transfer transfer = PagarMeTestFixture.CreateTestTransfer(bank.Id, recipient.Id);
            transfer.Save();

            var transfers = PagarMeService.GetDefaultService().Transfers.FindAll(new Transfer());

            Assert.GreaterOrEqual(transfers.Count(), 1);

        }

33. Example

Project: FieldWorks
Source File: FwListBoxTests.cs
View license
[Test]
		public void WritingSystemCode_EmptyFwListBox_DoesNotThrowException()
		{
			using (var listBox = new FwListBox())
			{
				using (var innerFwListBox = new InnerFwListBox(listBox))
				{
					// The Test
					Assert.GreaterOrEqual(innerFwListBox.WritingSystemCode, 0);
				}
			}
		}

34. Example

Project: owncloud-sharp
Source File: ClientTest.cs
View license
[Test ()]
		public void GetUserGroups() {
			var result = c.GetUserGroups ("octestusr");
			Assert.GreaterOrEqual (result.Count, 0);
		}

35. Example

View license
[Test]
		public void FindAllAudioTracks_Test_SortOrder()
		{
			_audioTracks = _api.FindAllAudioTracks(10, 0, SortBy.CreationDate, SortOrder.Descending);
			Assert.GreaterOrEqual(10, _audioTracks.Count);

			//verify each video's creation date is in order
			BrightcoveAudioTrack lastAudioTrack = null;
			foreach (BrightcoveAudioTrack bcAudioTrack in _audioTracks)
			{
				if (lastAudioTrack == null)
				{
					lastAudioTrack = bcAudioTrack;
					continue;
				}
				Assert.GreaterOrEqual(lastAudioTrack.CreationDate, bcAudioTrack.CreationDate);
				lastAudioTrack = bcAudioTrack;
			}
		}

36. Example

Project: AutoTest.Net
Source File: GreaterEqualFixture.cs
View license
[Test, ExpectedException(typeof(AssertionException))]
        public void NotGreaterEqualIComparable()
        {
			expectedMessage =
				"  Expected: greater than or equal to TableDirect" + Environment.NewLine +
				"  But was:  StoredProcedure" + Environment.NewLine;
			Assert.GreaterOrEqual(e2, e1);
        }

37. Example

Project: AutoTest.Net
Source File: GreaterEqualFixture.cs
View license
[Test, ExpectedException(typeof(AssertionException))]
        public void NotGreaterEqualIComparable()
        {
			expectedMessage =
				"  Expected: greater than or equal to TableDirect" + Environment.NewLine +
				"  But was:  StoredProcedure" + Environment.NewLine;
			Assert.GreaterOrEqual(e2, e1);
        }

38. Example

Project: AutoTest.Net
Source File: GreaterEqualFixture.cs
View license
[Test, ExpectedException(typeof(AssertionException))]
        public void NotGreaterEqualIComparable()
        {
			expectedMessage =
				"  Expected: greater than or equal to TableDirect" + Environment.NewLine +
				"  But was:  StoredProcedure" + Environment.NewLine;
			Assert.GreaterOrEqual(e2, e1);
        }

39. Example

View license
[Test]
		public void ShouldHaveFileWatchersArray()
		{
			Assert.GreaterOrEqual(_LogSearchShipper.FileWatchers.Count, 1);
		}

40. Example

View license
[Test]
		public void ShouldHaveEDBFileWatchArray()
		{
			Assert.GreaterOrEqual(_LogSearchShipper.EDBFileWatchers.Count, 1);
		}

41. Example

View license
[Test]
		public void ShouldHaveFileWatchWithFieldsArray()
		{
			Assert.GreaterOrEqual(2, _LogSearchShipper.FileWatchers[0].Fields.Count);
		}

42. Example

View license
[Test]
        public async Task Test_View_Query_Authenticated()
        {
            using (var bucket = _cluster.OpenBucket("authenticated", "secret"))
            {
                var manager = bucket.CreateManager("Administrator", "password");
                var viewResult = await manager.InsertDesignDocumentAsync("docs", ResourceHelper.ReadResource(@"Data\DesignDocs\docs.json"));
                Assert.IsTrue(viewResult.Success);

                var query = bucket.CreateQuery("docs", "all_docs").
                    Development(false).
                    Limit(10);

                var result = bucket.Query<dynamic>(query);
                Assert.IsTrue(result.Success);
                Assert.GreaterOrEqual(result.TotalRows, 0);
            }
        }

43. Example

Project: MonoGame.Extended
Source File: AngleTest.cs
View license
[Test]
        public void WrapTest()
        {
            for (var f = -10f; f < 10f; f += 0.1f)
            {
                var wrappositive = new Angle(f);
                wrappositive.WrapPositive();

                var wrap = new Angle(f);
                wrap.Wrap();

                Assert.GreaterOrEqual(wrappositive.Radians, 0);
                Assert.Less(wrappositive.Radians, 2d * MathHelper.Pi);

                Assert.GreaterOrEqual(wrap.Radians, -MathHelper.Pi);
                Assert.Less(wrap.Radians, MathHelper.Pi);
            }
        }

44. Example

Project: tdd-toolkit
Source File: AnySpecification.cs
View license
[Test]
    public void ShouldSupportCreatingArraysWithSpecificLiteralElements()
    {
      var array = Any.ArrayWith(1, 2, 3);

      CollectionAssert.Contains(array, 1);
      CollectionAssert.Contains(array, 2);
      CollectionAssert.Contains(array, 3);
      Assert.GreaterOrEqual(array.Length, 3);
    }

45. Example

Project: tdd-toolkit
Source File: AnySpecification.cs
View license
[Test]
    public void ShouldSupportCreatingListsWithSpecificLiteralElements()
    {
      var list = Any.ListWith(1, 2, 3);

      CollectionAssert.Contains(list, 1);
      CollectionAssert.Contains(list, 2);
      CollectionAssert.Contains(list, 3);
      Assert.GreaterOrEqual(list.Count, 3);
    }

46. Example

Project: tdd-toolkit
Source File: AnySpecification.cs
View license
[Test]
    public void ShouldSupportCreatingListsWithSpecificEnumerableOfElements()
    {
      var array = Any.ListWith<int>(new List<int> {1, 2, 3});

      CollectionAssert.Contains(array, 1);
      CollectionAssert.Contains(array, 2);
      CollectionAssert.Contains(array, 3);
      Assert.GreaterOrEqual(array.Count, 3);
    }

47. Example

Project: tdd-toolkit
Source File: AnySpecification.cs
View license
[Test]
    public void ShouldSupportCreatingArraysWithSpecificEnumerableOfElements()
    {
      var array = Any.ArrayWith<int>(new List<int> {1, 2, 3});

      CollectionAssert.Contains(array, 1);
      CollectionAssert.Contains(array, 2);
      CollectionAssert.Contains(array, 3);
      Assert.GreaterOrEqual(array.Length, 3);
    }

48. Example

Project: C--Toggl-Api-Client
Source File: ProjectTests.cs
View license
[Test]
        public void Add()
        {
            var srv = new ProjectService();
            
            

            var obj = new Project
            {
                IsBillable = true,
                WorkspaceId = 303523 ,
                Name = "New Project" + DateTime.UtcNow,
                IsAutoEstimates = false
            };

            var act = srv.Add(obj);

            Assert.NotNull(act,"response back from api does not have at project object");
            Assert.GreaterOrEqual(act.Id, 0, "response back from object does not have a project id greater than zero");
        }

49. Example

Project: MatterSlice
Source File: SettingsTests.cs
View license
[Test]
		public void AllMovesRequiringRetractionDoRetraction()
		{
			string baseFileName = "ab retr/n ..... /n //View Source file for more details /n }

50. Example

View license
[Test]
        public void CreateItem_NoVideoExists_VideoAndItemCreated()
        {
            PlaylistItem playlistItem = Helpers.CreateItemInPlaylist(Playlist);

            //  Ensure that the Video was created.
            Video videoFromDatabase = VideoManager.Get(playlistItem.Video.Id);
            Assert.NotNull(videoFromDatabase);

            //  Ensure that the PlaylistItem was created.
            PlaylistItem itemFromDatabase = PlaylistItemManager.Get(playlistItem.Id);
            Assert.NotNull(itemFromDatabase);

            //  Should have a sequence number after saving for sure.
            Assert.GreaterOrEqual(itemFromDatabase.Sequence, 0);

            //  Pointers should be self-referential with only one item in the Playlist.
            //Assert.AreEqual(itemFromDatabase.NextItem, itemFromDatabase);
            //Assert.AreEqual(itemFromDatabase.PreviousItem, itemFromDatabase);
        }