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

더 자세히 ...

클래스

class  TestLogUiDispatcher

Public 멤버 함수

void LogPanelViewModel_SeedsExistingEntriesAndUpdatesSelectionDetail ()
void LogPanelViewModel_ClearClearsUnderlyingStoreImmediately ()
void LogPanelViewModel_AcceptsDispatcherAbstraction ()

정적 Private 멤버 함수

static DreamineLogEntry Entry (string message)

상세한 설명

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

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

멤버 함수 문서화

◆ Entry()

DreamineLogEntry Dreamine.FullKit.Wpf.Tests.Logging.LoggingWpfTests.Entry ( string message)
inlinestaticprivate

Entry 작업을 수행합니다.

매개변수
message처리할 메시지입니다.
반환값
Entry 작업에서 생성한 DreamineLogEntry 결과입니다.

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

115 {
116 return new DreamineLogEntry(
117 DateTimeOffset.UnixEpoch,
118 DreamineLogLevel.Info,
119 "Test",
120 message,
121 exception: null,
122 threadId: 1);
123 }

다음에 의해서 참조됨 : LogPanelViewModel_ClearClearsUnderlyingStoreImmediately(), LogPanelViewModel_SeedsExistingEntriesAndUpdatesSelectionDetail().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ LogPanelViewModel_AcceptsDispatcherAbstraction()

void Dreamine.FullKit.Wpf.Tests.Logging.LoggingWpfTests.LogPanelViewModel_AcceptsDispatcherAbstraction ( )
inline

Log Panel View Model Accepts Dispatcher Abstraction 작업을 수행합니다.

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

80 {
81 var store = new InMemoryLogStore();
82
83 using var viewModel = new DreamineLogPanelViewModel(
84 store,
85 new TestLogUiDispatcher());
86
87 Assert.Empty(viewModel.Entries);
88 }

◆ LogPanelViewModel_ClearClearsUnderlyingStoreImmediately()

void Dreamine.FullKit.Wpf.Tests.Logging.LoggingWpfTests.LogPanelViewModel_ClearClearsUnderlyingStoreImmediately ( )
inline

Log Panel View Model Clear Clears Underlying Store Immediately 작업을 수행합니다.

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

59 {
60 var store = new InMemoryLogStore();
61 store.Add(Entry("message"));
62
63 using var viewModel = new DreamineLogPanelViewModel(store, new WpfLogUiDispatcher());
64
65 viewModel.Clear();
66
67 Assert.Empty(store.GetEntries());
68 }

다음을 참조함 : Entry().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ LogPanelViewModel_SeedsExistingEntriesAndUpdatesSelectionDetail()

void Dreamine.FullKit.Wpf.Tests.Logging.LoggingWpfTests.LogPanelViewModel_SeedsExistingEntriesAndUpdatesSelectionDetail ( )
inline

Log Panel View Model Seeds Existing Entries And Updates Selection Detail 작업을 수행합니다.

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

30 {
31 var store = new InMemoryLogStore();
32 var first = Entry("first");
33 var second = Entry("second");
34 store.Add(first);
35 store.Add(second);
36
37 using var viewModel = new DreamineLogPanelViewModel(
38 store,
39 new WpfLogUiDispatcher(),
40 displayCapacity: 1);
41
42 viewModel.SelectedEntry = second;
43
44 Assert.Single(viewModel.Entries);
45 Assert.Same(second, viewModel.Entries[0]);
46 Assert.Contains("second", viewModel.SelectedDetailText);
47 }

다음을 참조함 : Entry().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

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