public void TestValid() { basic_api_collection.Models.Collection coll = new basic_api_collection.Models.Collection("hu3", 10, "tao"); CollectionBO bo = new CollectionBO(coll); Assert.True(bo.Valid()); }
public void TestInvalidSubIndice() { basic_api_collection.Models.Collection coll = new basic_api_collection.Models.Collection("hu3", -1, "tao"); CollectionBO bo = new CollectionBO(coll); Assert.False(bo.Valid()); }
public void TestInvalidKey() { basic_api_collection.Models.Collection coll = new basic_api_collection.Models.Collection("", 5, "tao"); CollectionBO bo = new CollectionBO(coll); Assert.False(bo.Valid()); }
public void TestInvalidValue() { basic_api_collection.Models.Collection coll = new basic_api_collection.Models.Collection("hu3", 10, ""); CollectionBO bo = new CollectionBO(coll); Assert.False(bo.Valid()); }