Exemple #1
0
 public void PositiveFilingIndicatorsMatchExactly()
 {
     var ctx = new Context();
     var a = new FilingIndicatorCollection();
     a.Add(ctx, "A.00.01", true);
     var b = new FilingIndicatorCollection();
     b.Add(ctx, "A.00.01", true);
     Assert.AreEqual(a, b);
 }
Exemple #2
0
        public void PositiveFilingIndicatorsMatchImplicitly()
        {
            var ctx = new Context();
            var a   = new FilingIndicatorCollection();

            a.Add(ctx, "A.00.01", true);
            var b = new FilingIndicatorCollection();

            b.Add(ctx, "A.00.01");
            Assert.Equal(a, b);
        }
Exemple #3
0
        public void NegativeFilingIndicatorsMatchExactly()
        {
            var ctx = new Context();
            var a   = new FilingIndicatorCollection();

            a.Add(ctx, "A.00.01", false);
            var b = new FilingIndicatorCollection();

            b.Add(ctx, "A.00.01", false);
            Assert.Equal(a, b);
        }
Exemple #4
0
        public void FilingIndicatorCollectionsMatchFunctionally()
        {
            var c0 = new Context();
            var a = new FilingIndicatorCollection();
            a.Add(c0, "A", true);
            a.Add(c0, "B", true);
            a.Add(c0, "C", false);

            var c1 = new Context();
            var b = new FilingIndicatorCollection();
            b.Add(c1, "B");
            b.Add(c1, "A");

            Assert.IsTrue(a.Equals(b));
        }
Exemple #5
0
        public void FilingIndicatorCollectionsMatchFunctionally()
        {
            var c0 = new Context();
            var a  = new FilingIndicatorCollection();

            a.Add(c0, "A", true);
            a.Add(c0, "B", true);
            a.Add(c0, "C", false);

            var c1 = new Context();
            var b  = new FilingIndicatorCollection();

            b.Add(c1, "B");
            b.Add(c1, "A");

            Assert.True(a.Equals(b));
        }