Пример #1
0
        public void GetName_ReturnsName_String()
        {
            string      name      = "Client2";
            ClientClass newClient = new ClientClass(name, "2", 2);
            string      result    = newClient.GetName();

            Assert.AreEqual(name, result);
        }
Пример #2
0
        public void SetName_SetsName_String()
        {
            ClientClass newClient = new ClientClass("Client9", "9", 9);

            string newName = "Client7";

            newClient.SetName(newName);
            string result = newClient.GetName();

            Assert.AreEqual(newName, result);
        }