Beispiel #1
0
        public void Count_ReturnsNumberOfItems()
        {
            var values = new SqlSet();
            Assert.Equal(0, values.Count);

            values.Add(new SqlAssign("Name", "John Doe"));
            Assert.Equal(1, values.Count);

            values.Add(new SqlAssign("Email", "*****@*****.**"));
            Assert.Equal(2, values.Count);
        }
Beispiel #2
0
        public void Count_ReturnsNumberOfItems()
        {
            var values = new SqlSet();

            Assert.Equal(0, values.Count);

            values.Add(new SqlAssign("Name", "John Doe"));
            Assert.Equal(1, values.Count);

            values.Add(new SqlAssign("Email", "*****@*****.**"));
            Assert.Equal(2, values.Count);
        }
Beispiel #3
0
 public void Add_WithNullAssign_ThrowsArgumentNull()
 {
     var set = new SqlSet();
     Assert.Throws<ArgumentNullException>(() => set.Add(null));
 }
Beispiel #4
0
        public void Add_WithNullAssign_ThrowsArgumentNull()
        {
            var set = new SqlSet();

            Assert.Throws <ArgumentNullException>(() => set.Add(null));
        }