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

더 자세히 ...

클래스

class  RelayTestCommand

Public 멤버 함수

void DefaultContent_IsEmpty ()
void Content_SetAndGet_Roundtrip ()
void ShineColor_DefaultIsEmpty ()
void ShineColor_SetAndGet_Roundtrip ()
void IsSelected_DefaultIsFalse ()
void IsSelected_ToggleWorks ()
void CornerRadius_DefaultIsPositive ()
void Command_Execute_InvokesAction ()
void CommandParameter_SetAndGet_Roundtrip ()
void DefaultSize_IsReasonable ()

상세한 설명

Dreamine 버튼의 기본값, 속성 왕복 및 명령 연결을 검증합니다.

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

멤버 함수 문서화

◆ Command_Execute_InvokesAction()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.Command_Execute_InvokesAction ( )
inline

연결한 명령을 실행하면 대상 동작이 호출되는지 검증합니다.

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

135 {
136 bool executed = false;
137 var btn = new DreamineButton
138 {
139 Command = new RelayTestCommand(_ => executed = true)
140 };
141 btn.Command.Execute(null);
142 Assert.True(executed);
143 }

◆ CommandParameter_SetAndGet_Roundtrip()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.CommandParameter_SetAndGet_Roundtrip ( )
inline

명령 매개변수 설정 및 조회가 같은 객체를 반환하는지 검증합니다.

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

155 {
156 var param = new object();
157 var btn = new DreamineButton { CommandParameter = param };
158 Assert.Same(param, btn.CommandParameter);
159 }

◆ Content_SetAndGet_Roundtrip()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.Content_SetAndGet_Roundtrip ( )
inline

콘텐츠 설정 및 조회가 같은 값을 반환하는지 검증합니다.

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

43 {
44 var btn = new DreamineButton { Content = "Click Me" };
45 Assert.Equal("Click Me", btn.Content);
46 }

◆ CornerRadius_DefaultIsPositive()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.CornerRadius_DefaultIsPositive ( )
inline

기본 모서리 반지름이 양수인지 검증합니다.

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

120 {
121 var btn = new DreamineButton();
122 Assert.True(btn.CornerRadius > 0);
123 }

◆ DefaultContent_IsEmpty()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.DefaultContent_IsEmpty ( )
inline

콘텐츠 기본값이 빈 문자열인지 검증합니다.

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

28 {
29 var btn = new DreamineButton();
30 Assert.Equal(string.Empty, btn.Content);
31 }

◆ DefaultSize_IsReasonable()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.DefaultSize_IsReasonable ( )
inline

기본 버튼 크기가 양수인지 검증합니다.

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

171 {
172 var btn = new DreamineButton();
173 Assert.True(btn.Width > 0 && btn.Height > 0);
174 }

◆ IsSelected_DefaultIsFalse()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.IsSelected_DefaultIsFalse ( )
inline

선택 상태 기본값이 거짓인지 검증합니다.

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

88 {
89 var btn = new DreamineButton();
90 Assert.False(btn.IsSelected);
91 }

◆ IsSelected_ToggleWorks()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.IsSelected_ToggleWorks ( )
inline

선택 상태를 양방향으로 전환할 수 있는지 검증합니다.

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

103 {
104 var btn = new DreamineButton { IsSelected = true };
105 Assert.True(btn.IsSelected);
106 btn.IsSelected = false;
107 Assert.False(btn.IsSelected);
108 }

◆ ShineColor_DefaultIsEmpty()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.ShineColor_DefaultIsEmpty ( )
inline

광택 색상의 기본값이 빈 색상인지 검증합니다.

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

58 {
59 var btn = new DreamineButton();
60 Assert.Equal(Color.Empty, btn.ShineColor);
61 }

◆ ShineColor_SetAndGet_Roundtrip()

void Dreamine.UI.WinForms.Tests.Controls.DreamineButtonTests.ShineColor_SetAndGet_Roundtrip ( )
inline

광택 색상 설정 및 조회가 같은 값을 반환하는지 검증합니다.

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

73 {
74 var btn = new DreamineButton { ShineColor = Color.Blue };
75 Assert.Equal(Color.Blue, btn.ShineColor);
76 }

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