NUnit.Framework.Assert.Greater(long, long, string)

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

9 Examples 7

1. Example

View license
[Test]
        public void Can_GetLastInsertedId_using_InsertParam()
        {
            var testObject = new UserAuth { UserName = "test" };

            //verify that "normal" Insert works as expected
            using (var con = OpenDbConnection())
            {
                con.CreateTable<UserAuth>(true);

                con.Insert(testObject);
                var normalLastInsertedId = con.GetLastInsertId();
                Assert.Greater(normalLastInsertedId, 0, "normal Insert");
            }

            //test with InsertParam
            using (var con = OpenDbConnection())
            {
                con.CreateTable<UserAuth>(true);

                var lastInsertId = con.InsertParam(testObject, selectIdentity: true);
                Assert.Greater(lastInsertId, 0, "with InsertParam");
            }
        }

2. Example

View license
[Test]
        public void Can_GetLastInsertedId_using_InsertParam()
        {
            var testObject = new SimpleType { Name = "test" };

            //verify that "normal" Insert works as expected
            using (var con = OpenDbConnection())
            {
                con.CreateTable<SimpleType>(true);

                con.Insert(testObject);
                var normalLastInsertedId = con.GetLastInsertId();
                Assert.Greater(normalLastInsertedId, 0, "normal Insert");
            }

            //test with InsertParam
            using (var con = OpenDbConnection())
            {
                con.CreateTable<SimpleType>(true);

                var lastInsertId = con.InsertParam(testObject, selectIdentity:true);
                Assert.Greater(lastInsertId, 0, "with InsertParam");
            }
        }

3. Example

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

4. Example

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

5. Example

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

6. Example

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

7. Example

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

8. Example

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

9. Example

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