예제 #1
0
        public void MetricWireModelTests_MetricBuilder_SupportabilityDistributed_TryBuildAcceptPayloadIgnoredUntrustedAccount()
        {
            var name = "Supportability/DistributedTrace/AcceptPayload/Ignored/UntrustedAccount";

            var wireModel = _metricBuilder.TryBuildAcceptPayloadIgnoredUntrustedAccount();

            Assert.That(wireModel, Is.Not.Null);

            Assert.That(wireModel.MetricName.Name, Is.EqualTo(name));
            Assert.That(wireModel.Data.Value0, Is.EqualTo(1));
            Assert.That(wireModel.Data.Value1, Is.EqualTo(0));
            Assert.That(wireModel.Data.Value2, Is.EqualTo(0));
            Assert.That(wireModel.Data.Value3, Is.EqualTo(0));
            Assert.That(wireModel.Data.Value4, Is.EqualTo(0));
            Assert.That(wireModel.Data.Value5, Is.EqualTo(0));
        }