예제 #1
0
        public void BrandName_CompareToBrandNameLesserName_ReturnsOne()
        {
            var brandName  = BrandNameBuilder.NewBrandName;
            var brandName2 = BrandNameBuilder.WithName("aaa");

            Assert.Equal(1, brandName.CompareTo(brandName2));
        }
예제 #2
0
        public void BrandName_CompareToBrandNameGreaterName_ReturnsMinusOne()
        {
            var brandName  = BrandNameBuilder.NewBrandName;
            var brandName2 = BrandNameBuilder.WithName("zzz");

            Assert.Equal(-1, brandName.CompareTo(brandName2));
        }
예제 #3
0
        public void BrandName_EqualsBrandNameDifferentName_ReturnsFalse()
        {
            var brandName  = BrandNameBuilder.NewBrandName;
            var brandName2 = BrandNameBuilder.WithName("test name");

            Assert.NotEqual(brandName, brandName2);
        }
예제 #4
0
            public static BrandName WithName(string name)
            {
                var builder = new BrandNameBuilder();

                builder.name = name;

                return(builder.Build());
            }
예제 #5
0
            public static BrandName WithName(string name)
            {
                var builder = new BrandNameBuilder();
                builder.name = name;

                return builder.Build();
            }