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

더 자세히 ...

Public 멤버 함수

void Format_WritesStableSingleLineLogText ()
void Format_AppendsExceptionDetailsWhenPresent ()

상세한 설명

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

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

멤버 함수 문서화

◆ Format_AppendsExceptionDetailsWhenPresent()

void Dreamine.FullKit.Tests.Logging.DreamineTextLogFormatterTests.Format_AppendsExceptionDetailsWhenPresent ( )
inline

Format Appends Exception Details When Present 작업을 수행합니다.

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

50 {
51 var entry = new DreamineLogEntry(
52 DateTimeOffset.UnixEpoch,
53 DreamineLogLevel.Error,
54 "Machine",
55 "Failed",
56 new InvalidOperationException("bad state"),
57 threadId: 1);
58
59 var text = new DreamineTextLogFormatter().Format(entry);
60
61 Assert.Contains("[Error] [Machine] [T1] Failed", text);
62 Assert.Contains(nameof(InvalidOperationException), text);
63 Assert.Contains("bad state", text);
64 }

◆ Format_WritesStableSingleLineLogText()

void Dreamine.FullKit.Tests.Logging.DreamineTextLogFormatterTests.Format_WritesStableSingleLineLogText ( )
inline

Format Writes Stable Single Line Log Text 작업을 수행합니다.

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

26 {
27 var entry = new DreamineLogEntry(
28 new DateTimeOffset(2026, 6, 7, 12, 34, 56, 789, TimeSpan.Zero),
29 DreamineLogLevel.Warning,
30 "Machine",
31 "Pressure changed",
32 exception: null,
33 threadId: 42);
34
35 var text = new DreamineTextLogFormatter().Format(entry);
36
37 Assert.Equal("[2026-06-07 12:34:56.789] [Warning] [Machine] [T42] Pressure changed", text);
38 }

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