public void TestConstructor() { //WindowControlから作成。 { NativeProgress progress = new NativeProgress(testDlg.IdentifyFromDialogId(1033)); Assert.AreEqual(30, progress.Pos); } //ハンドルから作成。 { NativeProgress progress = new NativeProgress(app, testDlg.IdentifyFromDialogId(1033).Handle); Assert.AreEqual(30, progress.Pos); } }
public void TestPos() { NativeProgress progress = new NativeProgress(testDlg.IdentifyFromDialogId(1033)); Assert.AreEqual(30, progress.Pos); }
public void TestMax() { NativeProgress progress = new NativeProgress(testDlg.IdentifyFromDialogId(1033)); Assert.AreEqual(100, progress.Max); }