Example #1
0
        public void op_ToString_whenName()
        {
            var obj = new Organization
                          {
                              Name = "Example"
                          };

            const string expected = "Example";
            var actual = obj.ToString();

            Assert.Equal(expected, actual);
        }
        public void op_ToString_whenName()
        {
            var obj = new Organization
            {
                Name = "Example"
            };

            const string expected = "Example";
            var          actual   = obj.ToString();

            Assert.Equal(expected, actual);
        }
Example #3
0
        public void op_ToString_whenDepartment()
        {
            var obj = new Organization
                          {
                              Department = "Accounts"
                          };

            var expected = "{0}Accounts".FormatWith(Environment.NewLine);
            var actual = obj.ToString();

            Assert.Equal(expected, actual);
        }
        public void op_ToString_whenDepartment()
        {
            var obj = new Organization
            {
                Department = "Accounts"
            };

            var expected = "{0}Accounts".FormatWith(Environment.NewLine);
            var actual   = obj.ToString();

            Assert.Equal(expected, actual);
        }