Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 public void Add_WithNullAssign_ThrowsArgumentNull()
 {
     var set = new SqlSet();
     Assert.Throws<ArgumentNullException>(() => set.Add(null));
 }
Esempio n. 4
0
        public void Add_WithNullAssign_ThrowsArgumentNull()
        {
            var set = new SqlSet();

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