コード例 #1
0
        public void ConstructorSetsMemoryProperty(decimal memoryReading)
        {
            // Act/Assert
            var result = new DockerContainerStat(0, memoryReading);

            //Assert
            result.Memory.Should().Be(memoryReading);
        }
コード例 #2
0
        public void ConstructorSetsCpuProperty(decimal cpuReading)
        {
            // Act/Assert
            var result = new DockerContainerStat(cpuReading, 0);

            //Assert
            result.Cpu.Should().Be(cpuReading);
        }