示例#1
0
        public void CanCreatePersonStruct()
        {
            var sut = new PersonX()
            {
                FirstName = "John", LastName = "Petersen"
            };

            sut.Items     = new List <string>();
            sut.FirstName = "john";
            sut.Items.Add("Structs are not immutable!");
        }
示例#2
0
        public void CanCreatePersonStruct()
        {
            var sut = new PersonX()
            {
                FirstName = "Mallikh", LastName = "Kalkere"
            };

            sut.Items     = new List <string>();
            sut.FirstName = "mallikh";
            sut.Items.Add("Structs are not immutable!");
        }