Exemple #1
0
        public void Equals_()
        {
            var someId = Guid.NewGuid().ToString();
            var left   = new ToastId(someId);
            var right  = new ToastId(someId);

            Assert.Equal(left, right);
            Assert.Equal(left.GetHashCode(), right.GetHashCode());
        }
Exemple #2
0
        public void Equals_(int id, string tag)
        {
            // prepare
            var left  = new ToastId(id, tag);
            var right = new ToastId(id, tag);

            // act & verify
            Assert.Equal(left, right);
            Assert.Equal(left.GetHashCode(), right.GetHashCode());
        }
Exemple #3
0
        public void Equals_(string tag, string group)
        {
            // prepare
            var left  = new ToastId(tag, group);
            var right = new ToastId(tag, group);

            // act & verify
            Assert.Equal(left, right);
            Assert.Equal(left.GetHashCode(), right.GetHashCode());
        }