コード例 #1
0
ファイル: StructureTests.cs プロジェクト: skwasjer/IbanNet
        public void When_creating_structureSection_with_structure_it_should_set_property()
        {
            const string myStructure = nameof(myStructure);

            // Act
            StructureSection structure = new TestStructureSection(myStructure);

            // Assert
            structure.Structure.Should().Be(myStructure);
        }
コード例 #2
0
ファイル: StructureTests.cs プロジェクト: skwasjer/IbanNet
        public void When_creating_structureSection_it_should_initialize_properties()
        {
            // Act
            StructureSection structure = new TestStructureSection();

            // Assert
            structure.Structure.Should().BeEmpty();
            structure.Example.Should().BeEmpty();
            structure.Length.Should().Be(0);
            structure.Position.Should().Be(0);
        }