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

더 자세히 ...

Public 멤버 함수

void IsExpanded_DefaultIsTrue ()
void IsExpanded_SetFalse_CollapsesHeight ()
void IsExpanded_RaisesExpandedChanged ()
void Header_SetAndGet_Roundtrip ()
void Content_IsNotNull ()
void Collapse_ThenExpand_RestoresHeight ()

상세한 설명

Dreamine 확장 컨트롤의 기본 상태, 높이, 이벤트와 콘텐츠를 검증합니다.

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

멤버 함수 문서화

◆ Collapse_ThenExpand_RestoresHeight()

void Dreamine.UI.WinForms.Tests.Controls.DreamineExpanderTests.Collapse_ThenExpand_RestoresHeight ( )
inline

접었다 다시 펼치면 원래 높이가 복원되는지 검증합니다.

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

107 {
108 var exp = new DreamineExpander();
109 int original = exp.Height;
110 exp.IsExpanded = false;
111 exp.IsExpanded = true;
112 Assert.Equal(original, exp.Height);
113 }

◆ Content_IsNotNull()

void Dreamine.UI.WinForms.Tests.Controls.DreamineExpanderTests.Content_IsNotNull ( )
inline

내부 콘텐츠 패널이 생성되는지 검증합니다.

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

92 {
93 var exp = new DreamineExpander();
94 Assert.NotNull(exp.Content);
95 }

◆ Header_SetAndGet_Roundtrip()

void Dreamine.UI.WinForms.Tests.Controls.DreamineExpanderTests.Header_SetAndGet_Roundtrip ( )
inline

머리글 설정 및 조회가 같은 값을 반환하는지 검증합니다.

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

77 {
78 var exp = new DreamineExpander { Header = "Section A" };
79 Assert.Equal("Section A", exp.Header);
80 }

◆ IsExpanded_DefaultIsTrue()

void Dreamine.UI.WinForms.Tests.Controls.DreamineExpanderTests.IsExpanded_DefaultIsTrue ( )
inline

확장 컨트롤이 기본적으로 펼쳐져 있는지 검증합니다.

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

26 {
27 var exp = new DreamineExpander();
28 Assert.True(exp.IsExpanded);
29 }

◆ IsExpanded_RaisesExpandedChanged()

void Dreamine.UI.WinForms.Tests.Controls.DreamineExpanderTests.IsExpanded_RaisesExpandedChanged ( )
inline

두 번의 확장 상태 변경이 두 번의 이벤트를 발생시키는지 검증합니다.

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

58 {
59 var exp = new DreamineExpander();
60 int fired = 0;
61 exp.ExpandedChanged += (_, _) => fired++;
62 exp.IsExpanded = false;
63 exp.IsExpanded = true;
64 Assert.Equal(2, fired);
65 }

◆ IsExpanded_SetFalse_CollapsesHeight()

void Dreamine.UI.WinForms.Tests.Controls.DreamineExpanderTests.IsExpanded_SetFalse_CollapsesHeight ( )
inline

접을 때 컨트롤 높이가 줄어드는지 검증합니다.

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

41 {
42 var exp = new DreamineExpander();
43 int expandedH = exp.Height;
44 exp.IsExpanded = false;
45 Assert.True(exp.Height < expandedH);
46 }

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