dunitx

    3熱度

    1回答

    如果我有串參數一個單元測試,我要檢查,如果輸入的字符串有逗號(,)的地方,我應該創建一個逗號在其中的輸入字符串。 但如何將它傳遞給TestCase? [Test] [TestCase('TestA', '12,34')] //AValue1 gets only '12' instead of '12,34' [TestCase('TestB', '12,,34')] //AValue1 ge

    1熱度

    1回答

    我已經爲C++中的Rad Studio Berlin的DUnitX構建了示例。 該代碼的副本:http://docwiki.embarcadero.com/RADStudio/Seattle/en/DUnitX_Overview 標題是: class __declspec(delphirtti) TestCalc : public TObject { public: virt

    2熱度

    1回答

    我正在爲我的FastCode項目編寫測試用例。 我已經寫了一個通用的試驗機,像這樣: TTest<T> = record private class var Def: System.Generics.Defaults.IComparer<T>; class var F: FastDefaults.TComparison<T>; strict private

    0熱度

    1回答

    我用DUnitX創建了一個TestCase,它自動生成了一些代碼,我對如何構造測試用例感到困惑。 的(自動生成的)代碼如下所示: procedure TestTBtnMgmtForm.SetUp; begin FBtnMgmtForm := TBtnMgmtForm.Create; end; procedure TestTBtnMgmtForm.TearDown; begin

    -1熱度

    1回答

    我在DunitX中都有C++和Delphi測試。我正在嘗試將它發佈到FinalBuilder中。 C++測試建立罰款,但德爾福測試有錯誤: "Error creating cfg file: C:\Tests.cfg Error expanding variables in Library Path : [Expression Error]: Variable\Object "DUnitX" do