小编use*_*496的帖子

如何使用多个监视器的Teststack.white

我有一个3显示器设置,但白色说:

[Warn - 10:59:24 AM] 'TestStack.White.UIItems.UIItem' Window with title: MYWINDOW 
whose dimensions are: 0,0,4492,1080, is not contained completely on the desktop 
0,0,1920,1080. 
UI actions on window needing mouse would not work in area not falling under the desktop
Run Code Online (Sandbox Code Playgroud)

是否可以在多台显示器上使用teststack.white?如果它不可用,那么我想为白色项目做贡献(我认为它的开源)并添加此功能,但我们会看到.

谢谢.

white-framework black-box-testing c#-4.0

7
推荐指数
0
解决办法
642
查看次数

为什么c#JavaScriptSerializer.Serialize返回空方括号

为什么以下代码返回"[]"时应返回"{"id":1999,"title":"hithere"}

    JavaScriptSerializer serializer = new JavaScriptSerializer();
    StringBuilder sbJsonResults = new StringBuilder();
    var result = serializer.Serialize(new dg(1999, "hithere"));

    context.Response.Clear();
    context.Response.ContentType = "application/json; charset=utf-8";
    context.Response.Cache.SetExpires(DateTime.MinValue);
    context.Response.Write(result);
Run Code Online (Sandbox Code Playgroud)

PS dg类看起来像这样:

    public class dg : ScheduleObserver, ILibrary, IEnumerable {
        public int id;
        public string title;
        private List<d> dList;
        ...many getters and setters and some logic functions...
    }

    public abstract class ScheduleObserver{
        public abstract void update();
    }

    public interface ILibrary {
        List<PD> getPDs();
        void setPDs(List<PD> newPDs);
        int getCurrentIndex();
        void addPD(PD pD);
        PD getPD(int index);
    }
Run Code Online (Sandbox Code Playgroud)

非常感谢. …

c# json javascriptserializer

6
推荐指数
1
解决办法
5758
查看次数