Dreamine.FullKit.Tests 1.0.0.0
Dreamine.FullKit.Tests 기능을 검증하는 자동화 테스트 프로젝트입니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.FullKit.Tests.PLC.ComponentFormatterTests 클래스 참조sealed

더 자세히 ...

Public 멤버 함수

void MitsubishiMxFormatter_FormatsDecimalAndHexDevices ()
void OmronCxFormatter_FormatsMappedAreas ()
void ComponentOptions_ExposeDefaults ()

상세한 설명

Component Formatter Tests 기능과 관련 상태를 캡슐화합니다.

ComponentFormatterTests.cs 파일의 17 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ ComponentOptions_ExposeDefaults()

void Dreamine.FullKit.Tests.PLC.ComponentFormatterTests.ComponentOptions_ExposeDefaults ( )
inline

Component Options Expose Defaults 작업을 수행합니다.

ComponentFormatterTests.cs 파일의 62 번째 라인에서 정의되었습니다.

63 {
64 Assert.False(string.IsNullOrWhiteSpace(new MitsubishiMxComponentOptions().ProgId));
65 Assert.Equal("OMRON.Compolet.CJ2Compolet", new OmronCxComponentOptions().ProgId);
66 }

◆ MitsubishiMxFormatter_FormatsDecimalAndHexDevices()

void Dreamine.FullKit.Tests.PLC.ComponentFormatterTests.MitsubishiMxFormatter_FormatsDecimalAndHexDevices ( )
inline

Mitsubishi Mx Formatter Formats Decimal And Hex Devices 작업을 수행합니다.

ComponentFormatterTests.cs 파일의 28 번째 라인에서 정의되었습니다.

29 {
30 Assert.Equal("D100", MitsubishiMxDeviceNameFormatter.Format(new PlcAddress(PlcDeviceType.D, 100)));
31 Assert.Equal("X10", MitsubishiMxDeviceNameFormatter.Format(new PlcAddress(PlcDeviceType.X, 16)));
32 Assert.Equal("M5.2", MitsubishiMxDeviceNameFormatter.Format(new PlcAddress(PlcDeviceType.M, 5, 2)));
33 Assert.Equal("D101", MitsubishiMxDeviceNameFormatter.FormatOffset(new PlcAddress(PlcDeviceType.D, 100), 1));
34 }

◆ OmronCxFormatter_FormatsMappedAreas()

void Dreamine.FullKit.Tests.PLC.ComponentFormatterTests.OmronCxFormatter_FormatsMappedAreas ( )
inline

Omron Cx Formatter Formats Mapped Areas 작업을 수행합니다.

ComponentFormatterTests.cs 파일의 45 번째 라인에서 정의되었습니다.

46 {
47 Assert.Equal("D100", OmronCxAddressNameFormatter.Format(new PlcAddress(PlcDeviceType.D, 100)));
48 Assert.Equal("W10", OmronCxAddressNameFormatter.Format(new PlcAddress(PlcDeviceType.M, 10)));
49 Assert.Equal("CIO1.3", OmronCxAddressNameFormatter.Format(new PlcAddress(PlcDeviceType.X, 1, 3)));
50 Assert.Equal("H7", OmronCxAddressNameFormatter.FormatOffset(new PlcAddress(PlcDeviceType.R, 5), 2));
51 }

이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: