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

더 자세히 ...

Public 멤버 함수

void DreamineCommandAttribute_StoresConfiguredValues ()
void DreamineCommandAttribute_RejectsNullTargetMethod ()
void OptionalNameAttributes_ExposeConfiguredNames ()

상세한 설명

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

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

멤버 함수 문서화

◆ DreamineCommandAttribute_RejectsNullTargetMethod()

void Dreamine.FullKit.Tests.Attributes.DreamineAttributeTests.DreamineCommandAttribute_RejectsNullTargetMethod ( )
inline

Dreamine Command Attribute Rejects Null Target Method 작업을 수행합니다.

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

47 {
48 Assert.Throws<ArgumentNullException>(() => new DreamineCommandAttribute(null!));
49 }

◆ DreamineCommandAttribute_StoresConfiguredValues()

void Dreamine.FullKit.Tests.Attributes.DreamineAttributeTests.DreamineCommandAttribute_StoresConfiguredValues ( )
inline

Dreamine Command Attribute Stores Configured Values 작업을 수행합니다.

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

25 {
26 var attribute = new DreamineCommandAttribute("Service.Load")
27 {
28 BindTo = "Result",
29 CommandName = "LoadCommand"
30 };
31
32 Assert.Equal("Service.Load", attribute.TargetMethod);
33 Assert.Equal("Result", attribute.BindTo);
34 Assert.Equal("LoadCommand", attribute.CommandName);
35 }

◆ OptionalNameAttributes_ExposeConfiguredNames()

void Dreamine.FullKit.Tests.Attributes.DreamineAttributeTests.OptionalNameAttributes_ExposeConfiguredNames ( )
inline

Optional Name Attributes Expose Configured Names 작업을 수행합니다.

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

61 {
62 Assert.Equal("Model", new DreamineModelAttribute("Model").PropertyName);
63 Assert.Equal("Event", new DreamineEventAttribute("Event").PropertyName);
64 Assert.Equal("Name", new DreaminePropertyAttribute("Name").PropertyName);
65 var commandAttribute = new DreamineCommandAttribute
66 {
67 CommandName = "SaveCommand"
68 };
69 Assert.Null(commandAttribute.TargetMethod);
70 Assert.Equal("SaveCommand", commandAttribute.CommandName);
71 Assert.Equal("Text", new DreamineModelPropertyAttribute("Text").ModelPropertyName);
72 }

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