コード例 #1
0
        internal static void AssertValid(this Service.AgentC thisObj)
        {
            thisObj.Should().NotBeNull();

            thisObj.Name.Should().Be(Consts.AgentName);
            thisObj.Version.Should().MatchRegex(@"^\d+\.\d+\.\d+");
        }
コード例 #2
0
        internal static void AssertValid(this Service.AgentC thisObj)
        {
            thisObj.Should().NotBeNull();

            thisObj.Name.Should().Be(Consts.AgentName);
            thisObj.Version.Should().Be(Service.GetDefaultService(new MockConfigSnapshot(new NoopLogger()), new NoopLogger()).Agent.Version);
        }
コード例 #3
0
        internal static void AssertValid(this Service.AgentC thisObj)
        {
            thisObj.Should().NotBeNull();

            thisObj.Name.Should().Be(Consts.AgentName);
            thisObj.Version.Should().Be(Service.GetDefaultService(new TestAgentConfigurationReader(new NoopLogger())).Agent.Version);
        }